CSS Animation

transition;animation

transition:

  • ease //缓慢开始

  • linear //匀速

  • ease-in //缓慢开始

  • ease-out //缓慢结束

  • ease-in-out //缓慢开始,缓慢结束

  • webkit-perspective //距离屏幕距离

  • webkit-perspective-origin: 50% 50%;

  • webkit-transform-style:-webkit-preserve-3d //三维场景

    transform-origin //旋转中心

  • x轴 left center right

  • y轴 top center bottom

  • z轴 length px

transform:rotateY(20deg)

Animation

  • animation:动画名称 持续时间 运动曲线 延时时间 播放次数 方向
  • @keyframe
  • animation-name
  • animation-duration //完成所需时间
  • animation-timing-function //速度曲线 ease..
  • animation-delay //延时时间
  • animation-iteration-count //播放次数 infinite
  • animation-direction //下次是否逆向播放 normal/alternate
  • animation-play-state //动画运行或暂停 paused/running
  • animation-fill-mode //动画外的状态 none/forwards/backwards/both

本文作者: 孟 虎
本文链接: https://menghu1994.github.io/blog/2023/10/Animation/animation/
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!