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

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.

主站蜘蛛池模板: 福安市| 上杭县| 九龙坡区| 德令哈市| 潢川县| 磴口县| 云安县| 霍林郭勒市| 阿城市| 新乐市| 屏南县| 来宾市| 彩票| 桐乡市| 章丘市| 余江县| 全州县| 嘉荫县| 长宁区| 曲水县| 中卫市| 霍林郭勒市| 南平市| 鄂州市| 平阴县| 靖江市| 威海市| 济源市| 东宁县| 台湾省| 海盐县| 万荣县| 且末县| 遂溪县| 依安县| 静海县| 剑河县| 昆山市| 定陶县| 岚皋县| 图木舒克市|