In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
The knowledge of this article "vue how to achieve page refresh animation" is not understood by most people, so the editor summarizes the following content to you, detailed content, clear steps, and has a certain reference value. I hope you can get something after reading this article. Let's take a look at this "vue how to achieve page refresh animation" article.
The code in index.html
Css style:
Html,body {width: 100%; height: 100%; padding: 0; margin: 0; background: cornflowerblue;} .loadings {width: 100%; height: 100%; display: flex; justify-content: center; align-items: center } .spinner {width: 300px; height: 50px; position: relative; display: flex; justify-content: center; align-items: center;} .spinner > div {width: 30px; height: 30px; background-color: # 67CF22 Border-radius: 100%; margin: 0px 10px; display: inline-block;-webkit-animation: bouncedelay 1.4s infinite ease-in-out; animation: bouncedelay 1.4s infinite ease-in-out; / * Prevent first frame from flickering when animation starts * /-webkit-animation-fill-mode: both; animation-fill-mode: both } .spinner .bounce1 {- webkit-animation-delay:-0.32s; animation-delay:-0.32s;} .spinner .bounce2 {- webkit-animation-delay:-0.16s; animation-delay:-0.16s } @-webkit-keyframes bouncedelay {0%, 80%, 100% {- webkit-transform: scale (0.0)} 40% {- webkit-transform: scale (1.0)} @ keyframes bouncedelay {0%, 80%, 100% {transform: scale (0.0) -webkit-transform: scale (0.0);} 40% {transform: scale (1.0);-webkit-transform: scale (1.0);}} # app {display: none;}
Html code
Here is the code for app.vue
Export default {name: 'App', data () {return {}}, created () {/ / determine whether there is an animated box in the Remove let loading = document.getElementsByClassName ('loadings') [0] if (loading) {document.body.removeChild (loading)} body {background: white / / here is to change the background color affected by the animation} # app {width: 100%; height: 100%; display: block; / / here is to show the hidden app box}
This is the code for all the page refresh animations.
The above is about "vue how to achieve page refresh animation" this article content, I believe we all have a certain understanding, I hope the editor to share the content to help you, if you want to know more related knowledge content, please pay attention to the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 281
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.