实例代码“Ctrl+/”提示“F11/ESC”全屏 返回 格式化 恢复 运行
x
 
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:cubic-bezier(0,0,0.25,1);}
18
#div2 {animation-timing-function:cubic-bezier(0.25,0.1,0.25,1);}
19
#div3 {animation-timing-function:cubic-bezier(0.42,0,1,1);}
20
#div4 {animation-timing-function:cubic-bezier(0,0,0.58,1);}
21
#div5 {animation-timing-function:cubic-bezier(0.42,0,0.58,1);}
22