0
How can we apply animation on rotation
5 Réponses
+ 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
+ 3
You mean animate some element with a rotation or what?
+ 1
Thanks KrOW
+ 1
👍👍👍👍
0
Yes it is what I am looking for