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 css3 makes the picture shrink to disappear

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

Share

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

This article mainly introduces how css3 shrinks the picture to disappear, which can be used for reference by interested friends. I hope you can learn a lot after reading this article. Let's take a look at it.

Methods: 1, use the "animation: name time" style to bind animation to the picture elements; 2, use the "@ keyframes name {0% {transform:scale (1);} 100% {transform:scale (0);}}" statement to make the picture disappear.

The operating environment of this tutorial: windows10 system, CSS3&&HTML5 version, Dell G3 computer.

In css, you can use the animation attribute to bind animation to picture elements and specify the time of the animation.

Then use the keyframes rules to specify the action of the element animation, the specific action according to the transform attribute with the scale function to scale the element.

Examples are as follows:

Document img {transform:scale (0 transform:scale); animation:fadenum 5s;} @ keyframes fadenum {0% {transform:scale (1);} 100% {transform:scale (0);}}

Thank you for reading this article carefully. I hope the article "how css3 makes the picture disappear" shared by the editor will be helpful to everyone. At the same time, I also hope you can support us and follow the industry information channel. More related knowledge is waiting for you 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.

Share To

Development

Wechat

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

12
Report