案例:CSS3 案例     状态:可编辑再运行    进入横版
x
#div2 {-webkit-transition-timing-function: cubic-bezier(0.25,0.1,0.25,1);}
 
1
<!DOCTYPE html>
2
<html>
3
<head>
4
<style> 
5
div
6
{
7
width:100px;
8
height:50px;
9
background:red;
10
color:white;
11
font-weight:bold;
12
transition:width 2s;
13
-moz-transition:width 2s; /* Firefox 4 */
14
-webkit-transition:width 2s; /* Safari and Chrome */
15
-o-transition:width 2s; /* Opera */
16
}
17
18
#div1 {transition-timing-function: cubic-bezier(0,0,0.25,1);}
19
#div2 {transition-timing-function: cubic-bezier(0.25,0.1,0.25,1);}
20
#div3 {transition-timing-function: cubic-bezier(0.42,0,1,1);}
21
#div4 {transition-timing-function: cubic-bezier(0,0,0.58,1);}
22
#div5 {transition-timing-function: cubic-bezier(0.42,0,0.58,1);}
23
24
/* Firefox 4: */

 运行结果 
 北美留学生论坛