How to dynamically create '@-Keyframe' CSS animations?

前端 未结 9 1243
误落风尘
误落风尘 2020-11-27 03:42

I have a requirement to rotate a div and stop at a particular position ( The value will be received from the server).

I tried native JS to rotate and stop but it is

9条回答
  •  抹茶落季
    2020-11-27 04:33

    You can change the style in CSSKeyframeRule, and this works fine for me in Chrome, just as the code below. Hope this will help:)

    
    
    
    	
    
    
    
    	
    TEXT

提交回复
热议问题