In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 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 make circular rotation animation, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
To animate a rotation using css3
Step 1: draw 8 icons and set them to 4 div
Product center
Official website
Agent query
Login in the background
Company qualification
Quality inspection report
Agent login
Agent authorization
Step 2: use css3 layout
.out _ circle {
Width:440px
Height:440px
Border:1pxsolid
Border-radius:50%
Margin:30pxauto0auto
Position:relative
}
.nav _ circle {
Width:110px
Height:440px
Float:left
Position:absolute
Top:0
Left:169px
Text-align:center
}
.img _ top {
Top:-27px
-webkit-transform:rotate (0deg)
}
.img _ bottom {
Top:316px
-webkit-transform:rotate (0deg)
}
.img _ topimg,.img_bottomimg {
Width:77px
Height:77px
}
.img _ top,.img_bottom {
Position:relative
Z-index:1
}
.nav _ circle.imga {
Position:absolute
Top:10px
Left:94px
Width:52px
}
.r1 {
Transform:rotate (0deg) skew (0deg) scale (1)
-ms-transform:rotate (0deg) skew (0deg) scale (1); / * IE9*/
-moz-transform:rotate (0deg) skew (0deg) scale (1); / * Firefox*/
-webkit-transform:rotate (0deg) skew (0deg) scale (1); / * Safari: Chrome*/
-o-transform:rotate (0deg) skew (0deg) scale (1)
Animation:rotate10slinearinfinite
-webkit-animation:rotate10slinearinfinite
-moz-animation:rotate10slinearinfinite
-o-animation:rotate10slinearinfinite
}
.r1.img {
Transform:rotate (0deg) skew (0deg) scale (1)
-ms-transform:rotate (0deg) skew (0deg) scale (1); / * IE9*/
-moz-transform:rotate (0deg) skew (0deg) scale (1); / * Firefox*/
-webkit-transform:rotate (0deg) skew (0deg) scale (1); / * Safari: Chrome*/
-o-transform:rotate (0deg) skew (0deg) scale (1)
Animation:rotate_c110slinearinfinite
-webkit-animation:rotate_c110slinearinfinite
}
.r2 {
Transform:rotate (45deg) skew (0deg) scale (1)
-ms-transform:rotate (45deg) skew (0deg) scale (1); / * IE9*/
-moz-transform:rotate (45deg) skew (0deg) scale (1); / * Firefox*/
-webkit-transform:rotate (45deg) skew (0deg) scale (1); / * Safari: Chrome*/
-o-transform:rotate (45deg) skew (0deg) scale (1)
Animation:rotatef10slinearinfinite
-webkit-animation:rotatef10slinearinfinite
-moz-animation:rotatef10slinearinfinite
-o-animation:rotatef10slinearinfinite
}
.r2.img {
Transform:rotate (- 45deg) skew (0deg) scale (1)
-ms-transform:rotate (- 45deg) skew (0deg) scale (1); / * IE9*/
-moz-transform:rotate (- 45deg) skew (0deg) scale (1); / * Firefox*/
-webkit-transform:rotate (- 45deg) skew (0deg) scale (1); / * Safari: Chrome*/
-o-transform:rotate (- 45deg) skew (0deg) scale (1)
Animation:rotate_c210slinearinfinite
-webkit-animation:rotate_c210slinearinfinite
}
.r3 {
Transform:rotate (90deg) skew (0deg) scale (1)
-ms-transform:rotate (90deg) skew (0deg) scale (1); / * IE9*/
-moz-transform:rotate (90deg) skew (0deg) scale (1); / * Firefox*/
-webkit-transform:rotate (90deg) skew (0deg) scale (1); / * Safari: Chrome*/
-o-transform:rotate (90deg) skew (0deg) scale (1)
Animation:rotates10slinearinfinite
-webkit-animation:rotates10slinearinfinite
-moz-animation:rotates10slinearinfinite
-o-animation:rotates10slinearinfinite
}
.r3.img {
Transform:rotate (- 90deg) skew (0deg) scale (1)
-ms-transform:rotate (- 90deg) skew (0deg) scale (1); / * IE9*/
-moz-transform:rotate (- 90deg) skew (0deg) scale (1); / * Firefox*/
-webkit-transform:rotate (- 90deg) skew (0deg) scale (1); / * Safari: Chrome*/
-o-transform:rotate (- 90deg) skew (0deg) scale (1)
Animation:rotate_c310slinearinfinite
-webkit-animation:rotate_c310slinearinfinite
}
.r4 {
Transform:rotate (135deg) skew (0deg) scale (1)
-ms-transform:rotate (135deg) skew (0deg) scale (1); / * IE9*/
-moz-transform:rotate (135deg) skew (0deg) scale (1); / * Firefox*/
-webkit-transform:rotate (135deg) skew (0deg) scale (1); / * Safari: Chrome*/
-o-transform:rotate (135deg) skew (0deg) scale (1)
Animation:rotatet20slinearinfinite
-webkit-animation:rotatet10slinearinfinite
-moz-animation:rotatet10slinearinfinite
-o-animation:rotatet10slinearinfinite
}
.r4.img {
Transform:rotate (- 135deg) skew (0deg) scale (1)
-ms-transform:rotate (- 135deg) skew (0deg) scale (1); / * IE9*/
-moz-transform:rotate (- 135deg) skew (0deg) scale (1); / * Firefox*/
-webkit-transform:rotate (- 135deg) skew (0deg) scale (1); / * Safari: Chrome*/
-o-transform:rotate (- 135deg) skew (0deg) scale (1)
Animation:rotate_c410slinearinfinite
-webkit-animation:rotate_c410slinearinfinite
}
Step 3: create an animation for each div
The first div
@ keyframesrotate {
0% {
Transform:rotate (0deg) skew (0deg) scale (1)
-ms-transform:rotate (0deg) skew (0deg) scale (1); / * IE9*/
-moz-transform:rotate (0deg) skew (0deg) scale (1); / * Firefox*/
-webkit-transform:rotate (0deg) skew (0deg) scale (1); / * Safari: Chrome*/
-o-transform:rotate (0deg) skew (0deg) scale (1)
}
100% {
Transform:rotate (360deg) skew (0deg) scale (1)
-ms-transform:rotate (360deg) skew (0deg) scale (1); / * IE9*/
-moz-transform:rotate (360deg) skew (0deg) scale (1); / * Firefox*/
-webkit-transform:rotate (360deg) skew (0deg) scale (1); / * Safari: Chrome*/
-o-transform:rotate (360deg) skew (0deg) scale (1)
}
}
Second div
@ keyframesrotatef {
0% {
Transform:rotate (45deg) skew (0deg) scale (1)
-ms-transform:rotate (45deg) skew (0deg) scale (1); / * IE9*/
-moz-transform:rotate (45deg) skew (0deg) scale (1); / * Firefox*/
-webkit-transform:rotate (45deg) skew (0deg) scale (1); / * Safari: Chrome*/
-o-transform:rotate (45deg) skew (0deg) scale (1)
}
100% {
Transform:rotate (405deg) skew (0deg) scale (1)
-ms-transform:rotate (405deg) skew (0deg) scale (1); / * IE9*/
-moz-transform:rotate (405deg) skew (0deg) scale (1); / * Firefox*/
-webkit-transform:rotate (405deg) skew (0deg) scale (1); / * Safari: Chrome*/
-o-transform:rotate (405deg) skew (0deg) scale (1)
}
}
The third div
@ keyframesrotates {
0% {
Transform:rotate (90deg) skew (0deg) scale (1)
-ms-transform:rotate (90deg) skew (0deg) scale (1); / * IE9*/
-moz-transform:rotate (90deg) skew (0deg) scale (1); / * Firefox*/
-webkit-transform:rotate (90deg) skew (0deg) scale (1); / * Safari: Chrome*/
-o-transform:rotate (90deg) skew (0deg) scale (1)
}
100% {
Transform:rotate (450deg) skew (0deg) scale (1)
-ms-transform:rotate (450deg) skew (0deg) scale (1); / * IE9*/
-moz-transform:rotate (450deg) skew (0deg) scale (1); / * Firefox*/
-webkit-transform:rotate (450deg) skew (0deg) scale (1); / * Safari: Chrome*/
-o-transform:rotate (450deg) skew (0deg) scale (1)
}
}
The fourth div
@ keyframesrotatet {
0% {
Transform:rotate (135deg) skew (0deg) scale (1)
-ms-transform:rotate (135deg) skew (0deg) scale (1); / * IE9*/
-moz-transform:rotate (135deg) skew (0deg) scale (1); / * Firefox*/
-webkit-transform:rotate (135deg) skew (0deg) scale (1); / * Safari: Chrome*/
-o-transform:rotate (135deg) skew (0deg) scale (1)
}
100% {
Transform:rotate (495deg) skew (0deg) scale (1)
-ms-transform:rotate (495deg) skew (0deg) scale (1); / * IE9*/
-moz-transform:rotate (495deg) skew (0deg) scale (1); / * Firefox*/
-webkit-transform:rotate (495deg) skew (0deg) scale (1); / * Safari: Chrome*/
-o-transform:rotate (495deg) skew (0deg) scale (1)
}
}
Be careful
Because the rotation property of css3 is not compatible with all browsers, add animation names to the corresponding classes after you have created them.
Thank you for reading this article carefully. I hope the article "how to make Circular rotation Animation in css3" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support and pay attention to 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.
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.