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

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.

主站蜘蛛池模板: 咸阳市| 密山市| 新疆| 晋中市| 湖北省| 永善县| 普兰县| 洛南县| 桂阳县| 临颍县| 新民市| 吉木乃县| 通辽市| 高清| 攀枝花市| 阜康市| 万州区| 石城县| 榕江县| 崇文区| 来宾市| 遵化市| 玉环县| 南阳市| 雅安市| 嘉善县| 门头沟区| 威海市| 延安市| 辽中县| 长乐市| 汝州市| 靖州| 林口县| 荣成市| 扎鲁特旗| 莲花县| 嘉定区| 太和县| 宁海县| 山阴县|