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 easy loading Animation with CSS3

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

Share

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

This article mainly introduces CSS3 how to achieve easy loading animation related knowledge, the content is detailed and easy to understand, simple and fast operation, has a certain reference value, I believe that everyone after reading this CSS3 how to achieve simple loading animation article will have a harvest, let's take a look at it.

1. Easy loading

@ keyframes myfirst

{

From {transform: rotate (0deg)} to {transform: rotate (360deg)}

}

.loading {

Animation: myfirst 1.5s infinite linear;//infinite controls the number of times of execution here, linear execution speed, uniform speed

Border: 16px solid # f3f3f3

Border-radius: 50%

Border-top:16px solid blue

Width: 120px

Height: 120px

}

two。 Simple progress bar

.move {

Width: 0px

Height: 10px

Animation: moveHover 5s infinite linear

}

3. Transition attribute

.change

{

Transition: width 2s

Font-size: 10px

Width: 100px

Height: 20px

Background: yellow

-moz-transition: width 2s; / * Firefox 4 * /

-webkit-transition: width 2s; / * Safari and Chrome * /

-o-transition: width 2s; / * Opera * /

}

.change: hover

{

Width: 500px

}

Mouse over

.bigger {

Font-size: 20px

Width: 0

Height: 0 position balance scale becomes larger according to width and height. Width and height must be set.

Background: # 2A9F00

Transition: transform 5s

}

.bigger: hover {

Transform: scale (10)

}

Big

This is the end of the article on "how to easily load animation in CSS3". Thank you for reading! I believe that everyone has a certain understanding of the knowledge of "how to achieve easy loading animation in CSS3". If you want to learn more knowledge, welcome to follow 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