7.3_时间轴扭曲函数
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>时间轴扭曲函数</title>
<style>
body{
background: #fff;
}
#canvas{
background: #eee;
}
#controls{
position: absolute;
left: 25px;
top: 25px;
}
#direction{
position: absolute;
left:25%;
top: 50%;
}
</style>
</head>
<body>
<div id="controls">
<input type="radio" name="sport" id="linearRadioButton" checked>均速运动<br />
<input type="radio" name="sport" id="easeInRadioButton" />缓入运动<br />
<input type="radio" name="sport" id="easeOutRadioButton" />缓出运动<br />
<input type="radio" name="sport" id="easeInOutRadioButton" />缓入缓出运动<br />
<input type="radio" name="sport" id="elasticRadioButton" />弹簧运动<br />
<input type="radio" name="sport" id="bounceRadioButton" />弹跳运动<br />
</div>
<div id="direction">
<input type="button" value="左边" id="leftButton"/ style="margin-right: 20px;">
<input type="button" value="右边" id="rightButton"/>
</div>
<