首页 > 代码库 > css3 动画 专场曲线

css3 动画 专场曲线

<!DOCTYPE html>
<html>
<head>
<title>转场曲线</title>
<style type="text/css">
.content div{
width: 100px;
height: 30px;
margin-top: 30px;
background-color: blue;

}
.content>div:nth-child(1){
transition: all 5s ease;
}
.content>div:nth-child(2){
transition: all 5s linear;
}
.content>div:nth-child(3){
transition: all 5s ease-in;
}
.content>div:nth-child(4){
transition: all 5s ease-out;
}
.content>div:nth-child(5){
transition: all 5s ease-in-out;
}
.content:hover div{
width: 800px;
}
</style>
</head>
<body>
<div class="content">
<div>ease</div>
<div>linear</div>
<div>ease-in</div>
<div>ease-out</div>
<div>ease-in-out</div>
</div>
</body>
</html>

css3 动画 专场曲线