ITPub博客

首页 > IT职业 > IT职场 > animation-fill-mode

animation-fill-mode

IT职场 作者:Hooman 时间:2021-09-09 09:51:22 0 删除 编辑

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

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

允许值:forwards, backwards, both, none

默认值:none

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

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

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

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

eg:

html>
    
        
    animation:both
    



作者:张靖bibibi
链接:https://www.jianshu.com/p/234921094167


来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/1273/viewspace-2813483/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2019-04-15

  • 博文量
    120
  • 访问量
    1201