官术网_书友最值得收藏!

The overlay background

At this point, there is something missing--the overlay background. We can't include it inside the overlay component because it would be zoomed during the animation--this would be quite awkward. Instead, we will use the simple fade animation we have created already.

In the main template, add a new p element with the overlay-background class just before the zoom transition and the overlay component:

<transition name="fade">
<p class="overlay-background" v-if="activeOverlay" />
</transition>

With the v-if directive, it will only be displayed when any overlay is displayed.

主站蜘蛛池模板: 安泽县| 鄂托克前旗| 宁国市| 呈贡县| 永胜县| 汾阳市| 安平县| 浦北县| 海淀区| 滨海县| 奉节县| 汤原县| 辰溪县| 盐亭县| 乌什县| 莫力| 出国| 来宾市| 溆浦县| 耒阳市| 高淳县| 宁乡县| 定日县| 南阳市| 慈利县| 舟山市| 富蕴县| 凌海市| 新余市| 通江县| 烟台市| 四会市| 宜兴市| 夏河县| 太保市| 常州市| 定州市| 正安县| 西充县| 曲阳县| 九江市|