css3 - Flip element with css continuously without action -
i want flip element continuously on y axis 0 360 degree css without action (button, hover).
some script allow 1 single time adding class, like: animate.css
and other flip on button press (http://desandro.github.io/3dtransforms/docs/card-flip.html) or on hover (http://davidwalsh.name/demo/css-flip.php)
.img:hover { transform: rotatey(360deg); transition: transform 10s; }
that tried far, work once , on hover...
can me code?
use css animation infinite.
img { -webkit-animation: anim 10s infinite linear; animation: anim 10s infinite linear; } @-webkit-keyframes anim { {-webkit-transform: rotatey(0deg);} {-webkit-transform: rotatey(360deg);} } @keyframes anim { {transform: rotatey(0deg);} {transform: rotatey(360deg);} }
Comments
Post a Comment