国产chinesehdxxxx野外,国产av无码专区亚洲av琪琪,播放男人添女人下边视频,成人国产精品一区二区免费看,chinese丰满人妻videos

CSS3的貝塞爾曲線(cubic

2018-06-19 18:29 更新
簡介
cubic-bezier 又稱三次貝塞爾,主要是為 animation 生成速度曲線的函數,是 animation-timing-function transition-timing-function 中的一個重要值。

語法:

cubic-bezier(x1,y1,x2,y2)

我們來看圖說話:


從上圖我們可以明確的知道 cubic-bezier 的取值范圍:

  • p0:默認值(0,0)
  • p1:取值(x1,y1)
  • p2:取值(x2,y2)
  • p3:默認值(1,1)

cubic-bezier 中,p0和p3是默認的點,所以我們只需要定義p1和p2兩個點,同時x1、y1、x2、y2的取值范圍為[0,1]

注意:當取值超出范圍時, cubic-bezier 就會失效。


在CSS3的動畫中,有幾個常用的固定值。

  • ease: cubic-bezier(.25, .1, .25, 1)
  • linear: cubic-bezier(0, 0, 1, 1)
  • ease-in:cubic-bezier(.42,0,1,1)
  • ease-out:cubic-bezier(0,0,.58,1)
  • ease-in-out:cubic-bezier(.42,0,.58,1)


ease: cubic-bezier(.25, .1, .25, 1)



linear: cubic-bezier(0, 0, 1, 1)




ease-in:cubic-bezier(.42,0,1,1)



ease-out:cubic-bezier(0,0,.58,1)



ease-in-out:cubic-bezier(.42,0,.58,1)



附錄

英文在線工具

中文在線工具


總結:

 cubic-bezier 是一個強大的屬性,合理使用,我們可以做出更多酷炫的動畫。




以上內容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號