- 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.
推薦閱讀
- 軟件界面交互設(shè)計基礎(chǔ)
- Mastering QGIS
- Java Web程序設(shè)計
- Learning Python Design Patterns(Second Edition)
- 自制編程語言
- Mastering Android Development with Kotlin
- Getting Started with Gulp
- Android開發(fā)案例教程與項目實戰(zhàn)(在線實驗+在線自測)
- 軟件測試實用教程
- Learning Unreal Engine Android Game Development
- Quantum Computing and Blockchain in Business
- Mastering Akka
- 算法精解:C語言描述
- PHP典型模塊與項目實戰(zhàn)大全
- Python程序員面試算法寶典