[关闭]
@sammffl 2016-03-02T06:47:15.000000Z 字数 763 阅读 633

transition 过渡动画 贝赛尔曲线

css知识点


transition
-moz-transition(Firefox)
-webkit-transition(Safari和Chrome)
-o-transition(Opera)

transition-property:过渡的css名称
transition-duration:过渡花费的时间
transition-timing-function:过度效果的时间曲线
transition-delay:过渡效果何时开始

transition-timing-function:
linear <==> cubic-bezier(0,0,1,1)
ease <==> cubic-bezier(0.25,0.1,0.25,1)
ease-in <==> cubic-bezier(0.42,0,1,1)
ease-out <==> cubic-bezier(0,0,0.58,1)
ease-in-out <==> cubic-bezier(0.42,0,0.58,1)
cubic-bezier(n,n,n,n)

  1. .plus {
  2. position: absolute;
  3. transition: all 2s cubic-bezier(0, 0.5, 0.8, 1);
  4. -moz-transition: all 2s cubic-bezier(0, 0.5, 0.8, 1); /* Firefox 4 */
  5. -webkit-transition: all 2s cubic-bezier(0, 0.5, 0.8, 1); /* Safari 和 Chrome */
  6. -o-transition: all 2s cubic-bezier(0, 0.5, 0.8, 1); /* Opera */
  7. left: 0;
  8. top: 50px;
  9. color: red;
  10. font-weight: bold;
  11. font-size: 1.2em;
  12. }

此处输入图片的描述

添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注