- 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.
推薦閱讀
- 簡單高效LATEX
- 深入理解Django:框架內(nèi)幕與實現(xiàn)原理
- RTC程序設(shè)計:實時音視頻權(quán)威指南
- GeoServer Beginner's Guide(Second Edition)
- 數(shù)據(jù)結(jié)構(gòu)與算法分析(C++語言版)
- 低代碼平臺開發(fā)實踐:基于React
- Unity UI Cookbook
- SQL Server實用教程(SQL Server 2008版)
- Visual C#.NET Web應用程序設(shè)計
- 自學Python:編程基礎(chǔ)、科學計算及數(shù)據(jù)分析(第2版)
- Serverless Web Applications with React and Firebase
- Clojure Polymorphism
- Advanced Python Programming
- Node.js 6.x Blueprints
- jQuery Mobile Web Development Essentials(Second Edition)