In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
This article focuses on "how to initialize loading animation in vue". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to initialize and load animation in vue.
1. Add loading animation to the entry file index.html:
# Loading {top:50%; left:50%; position: absolute;-webkit-transform: translateY (- 50%) translateX (- 50%); transform: translateY (- 50%) translateX (- 50%); Zmuri index100;} @-webkit-keyframes ball-beat {50% {opacity: 0.2;-webkit-transform: scale (0.75); transform: scale (0.75) } 100% {opacity: 1;-webkit-transform: scale (1); transform: scale (1);}} @ keyframes ball-beat {50% {opacity: 0.2;-webkit-transform: scale (0.75); transform: scale (0.75);} 100% {opacity: 1;-webkit-transform: scale (1); transform: scale (1) }. Ball-beat > div {background-color: # 279fcf; width: 15px; height: 15px; border-radius: 100%! important; margin: 2px;-webkit-animation-fill-mode: both; animation-fill-mode: both; display: inline-block;-webkit-animation: ball-beat 0.7s 0s infinite linear; animation: ball-beat 0.7s 0s infinite linear }. Ball-beat > div:nth-child (2n-1) {- webkit-animation-delay: 0.35s! important; animation-delay: 0.35s! important;}
two。 In the created method of app.vue:
Created () {document.body.removeChild (document.getElementById ('Loading'))} so far, I believe you have a deeper understanding of "how to initialize and load animation in vue". You might as well do it in practice! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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: 0
*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.