In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to achieve the racing lantern effect in vue+animation". The content in the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to achieve the racing lantern effect in vue+animation".
1. Display in a single line, with only one line per line
Effect picture
Upper code
{{item.name}} {{item.name}} export default {name: "activity", data () {return {lists: [{name: "Ma Yun Asa"}, {name: "Lei Jun"}, {name: "Wang Qin ah"} {name: "waiting for Lunlun"}]} },}; .box {width: 100%; height: 0.6remt; background-color: # b32855; overflow: hidden;}. Box ul {animation-name: move; / * the time spent dynamically setting each li in style is 2s * / / * animation-duration: 8s; * / animation-timing-function: linear; animation-iteration-count: infinite;} ul li {float: left; height: 0.6; display: flex; align-items: center } ul li .content {height: 0.4rem.padding: 00.2rem.border-radius: 0.2rem.background-color: rgba (0,0,0,0.2); color: # fff; display: flex; align-items: center; justify-content: space-around;} @ keyframes move {0 {transform: translateX (0) } 100% {/ * translate 50% of its own width 50% of the width of ul, and the remaining 50% will be used to occupy the space on the next display * / transform: translateX (- 50%);}}
2. Display in a single line, with multiple entries in each line
Effect picture
Upper code
{{item.name}} {{item.name}} Thank you for your reading. The above is the content of "how to achieve the racing lantern effect in vue+animation". After the study of this article, I believe you have a deeper understanding of how to achieve the racing lantern effect in vue+animation, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.