0

How can we apply animation on rotation

10th Jan 2019, 11:54 AM
aaditya sohani
aaditya sohani - avatar
5 Respostas
+ 2
You have to set an css animation attribute on you el then define an animation with @keyframes. Example: #myEl{ animation: myAnim 2s; } @keyframes myAnim{ from{ transform:rotate(0); } to{ transform:rotate(360deg); } } Obliviously there are many other settings for customize your animation. See here https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Animations/Using_CSS_animations https://developer.mozilla.org/en-US/docs/Web/CSS/animation https://developer.mozilla.org/en-US/docs/Web/CSS/@keyframes
10th Jan 2019, 12:19 PM
KrOW
KrOW - avatar
+ 3
You mean animate some element with a rotation or what?
10th Jan 2019, 12:02 PM
KrOW
KrOW - avatar
+ 1
Thanks KrOW
10th Jan 2019, 12:29 PM
aaditya sohani
aaditya sohani - avatar
+ 1
👍👍👍👍
10th Jan 2019, 12:30 PM
KrOW
KrOW - avatar
0
Yes it is what I am looking for
10th Jan 2019, 12:03 PM
aaditya sohani
aaditya sohani - avatar