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

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.

主站蜘蛛池模板: 建瓯市| 遵化市| 新源县| 临漳县| 贡觉县| 胶南市| 左权县| 呼和浩特市| 独山县| 称多县| 庐江县| 福海县| 晋中市| 横山县| 五华县| 高安市| 太保市| 肇东市| 石林| 清水县| 重庆市| 荃湾区| 廉江市| 五莲县| 鹿泉市| 小金县| 安康市| 芷江| 海口市| 颍上县| 无为县| 灵寿县| 石景山区| 新乐市| 太保市| 都江堰市| 迭部县| 合江县| 佛冈县| 贵定县| 蚌埠市|