Continuous CSS rotation animation on hover, animated back to 0deg on hover out

后端 未结 7 1556
温柔的废话
温柔的废话 2020-11-30 22:26

I have an element that spins when you hover over it indefinitely. When you hover out, the animation stops. Simple:

@-webkit-keyframes rotate {
    from {
            


        
7条回答
  •  佛祖请我去吃肉
    2020-11-30 22:51

    
    

    What I do is something very easy... declare a global variable at the start... and then increment the variable however much I like, and use .css of jquery to increment.

提交回复
热议问题