Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to realize the Animation effect of Picture Loop with css

2025-04-04 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly shows you how css to achieve the animation effect of the picture cycle, the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor to take you to study and learn "css how to achieve the animation effect of the picture cycle" this article.

* {margin:0;padding:0;} .robot {width:167px; height:191px; background:url (robot.png) no-repeat; position:absolute; left:0px; top:20px; animation:robotmove10slinearinfinite;} / * cycle turn * / @ keyframesrobotmove {0% {} 49% {transform:rotateY (0deg) } / * ensure that the previous 49% images will not be flipped halfway * / 50% {left:1000px;transform:rotateY (180deg);} / * 49% copyright 50% picture flipped * / 100% {left:0px;transform:rotateY (180deg) } / * after the guarantee, the shapes are all flipped 50% degrees * /} / * all the way, without flipping * / @ keyframesrobotmove2 {0% {} 100 {left:1100px;}} / * compatible with-webkit*/

What is the basic syntax of css? the basic syntax of css is: 1, the css rule consists of a selector and one or more declarations; 2, the selector is usually a HTML element that needs to change the style; 3, each declaration consists of an attribute and a value; 4, attributes and attribute values are separated by colons.

The above is about "css how to achieve the animation effect of the picture cycle". If this article is helpful to you and think it is well written, please share it with your friends to learn new knowledge. if you want to know more about it, please pay more 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: 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.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report