- Vue.js 2 Web Development Projects
- Guillaume Chau
- 82字
- 2021-07-02 22:34:35
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.
推薦閱讀
- Learning Real-time Processing with Spark Streaming
- JavaScript:Functional Programming for JavaScript Developers
- Python程序設計(第3版)
- Android 7編程入門經典:使用Android Studio 2(第4版)
- Linux網絡程序設計:基于龍芯平臺
- The DevOps 2.4 Toolkit
- 從0到1:Python數據分析
- Learning Continuous Integration with TeamCity
- 現代C++編程實戰:132個核心技巧示例(原書第2版)
- Processing創意編程指南
- Node.js 12實戰
- 軟件工程基礎與實訓教程
- Modernizing Legacy Applications in PHP
- Microsoft Dynamics GP 2013 Cookbook
- Java面向對象程序設計教程