CSS animation doesn't restart when resetting class

后端 未结 8 1280
陌清茗
陌清茗 2020-12-01 14:58

I am using CSS shader + animation. My shader class is defined as follows:

.shader{
-webkit-filter :custom(url(v.vs) mix(url(f.fs) multiply destination-over),         


        
8条回答
  •  不知归路
    2020-12-01 15:28

    You need to recreate your element.

    function resetAnimation(jqNode) {
       var clone = jqNode.clone();
       jqNode.after( clone );
       jqNode.remove();
       jqNode[0] = clone[0];
    }
    

提交回复
热议问题