animation-fill-mode

今天用zepto做一个h5的recruitPage的时候用到了animation-fill-mode,简单记录一下

animation-fill-mode - 指定动画执行前后如何为目标元素应用样式。

允许值:forwards, backwards, both, none

默认值:none

none:回到动画还未开始前的状态

backwards:动画回到第一帧的状态

forwards:动画停留在结束时的状态

both: 根据 animation-direction 轮流应用 forwards 和 backwards 规则。

eg:




    
        
    animation:both


    

你可能感兴趣的:(animation-fill-mode)