案例:CSS3 案例     状态:可编辑再运行    进入横版
x
<p><strong>注释:</strong>Internet Explorer 9 以及更早的版本不支持 animation-timing-function 属性。</p>
 
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
position:relative;
13
animation:mymove 5s infinite;
14
-webkit-animation:mymove 5s infinite; /* Safari and Chrome */
15
}
16
17
#div1 {animation-timing-function:linear;}
18
#div2 {animation-timing-function:ease;}
19
#div3 {animation-timing-function:ease-in;}
20
#div4 {animation-timing-function:ease-out;}
21
#div5 {animation-timing-function:ease-in-out;}
22
23
/* Safari and Chrome: */
24
#div1 {-webkit-animation-timing-function:linear;}

 运行结果 
 北美留学生论坛