• Transitions功能使用方法

在css3中,transitions功能通過將元素的某個屬性從一個屬性值在指定的時(shí)間內(nèi)平滑過渡到另一個屬性值來實(shí)現(xiàn)動畫功能,可通過transitions屬性來使用transitions功能。

transitions屬性的使用方法如下所示:

transitions:property durantion timing-function

其中property表示對哪個屬性進(jìn)行平滑過渡,duration表示在多長時(shí)間內(nèi)完成屬性值的平滑過渡,timing-function表示通過什么方法來進(jìn)行平滑過渡。例子如下:

移動開發(fā)培訓(xùn),Android培訓(xùn),安卓培訓(xùn),手機(jī)開發(fā)培訓(xùn),手機(jī)維修培訓(xùn),手機(jī)軟件培訓(xùn)

<!DOCTYPE html><html lang="en"><head>
    <meta charset="UTF-8">
    <title>Transitions功能的使用示例</title>
    <style>
      div{
          background-color: #ffff00;
          -webkit-transition: background-color 1s linear;
          -moz-transi
        
		

網(wǎng)友評論