<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>贝塞尔曲线</title>
<style type="text/css">
@keyframes hello {
0% {width: 100px;height: 100px;}
100% {transform: translateX(500px) translateY(500px);}
}
@-webkit-keyframes hello {
0% {width: 100px;height: 100px;}
100% { transform: translateX(500px) translateY(500px);}
}
div {
width: 100px;
height: 100px;
background-color: red;
animation-name: hello;
-webkit-animation-name: hello;
animation-duration: 1.5s;
-webkit-animation-duration: 1.5s;
animation-timing-function: cubic-bezier(0,.15,.65,1.32);
-webkit-animation-timing-function: cubic-bezier(0,.15,.65,1.32);
animation-fill-mode: forwards;
}
</style>
</head>
<body>
<div ></div>
</body>
</html>