<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<style>
body {
background-size: 50px;
background-image: repeating-linear-gradient(0deg ,#fff 10%,pink 20%);
}
* {
margin: 0;
padding: 0;
}
ul {
width: 20px;
height: 500px;
border:1px solid palevioletred;
background-color: cadetblue;
margin:200px auto;
position: relative;
transform: rotate(-75deg);
}
li {
width: 30px;
height: 500px;
border:1px solid blue;
position: absolute;
transform-origin: center 440px;
transition: transform 1s;
}
ul:hover li {
background: linear-gradient(to left, skyblue, pink);
}
ul:hover li:nth-child(2) {
transform: rotate(10deg);
}
ul:hover li:nth-child(3) {
transform: rotate(20deg);
}
ul:hover li:nth-child(4) {
transform: rotate(30deg);
}
ul:hover li:nth-child(5) {
transform: rotate(40deg);
}
ul:hover li:nth-child(6) {
transform: rotate(50deg);
}
ul:hover li:nth-child(7) {
transform: rotate(60deg);
}
ul:hover li:nth-child(8) {
transform: rotate(70deg);
}
ul:hover li:nth-child(9) {
transform: rotate(80deg);
}
ul:hover li:nth-child(10) {
transform: rotate(90deg);
}
ul:hover li:nth-child(11) {
transform: rotate(100deg);
}
ul:hover li:nth-child(12) {
transform: rotate(110deg);
}
ul:hover li:nth-child(13) {
transform: rotate(120deg);
}
ul:hover li:nth-child(14) {
transform: rotate(130deg);
}
ul:hover li:nth-child(15) {
transform: rotate(140deg);
}
</style>
</head>
<body>
<ul>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
<li></li>
</ul>
</body>
</html>
![](https://img-blog.csdnimg.cn/img_convert/58a7748a98234ad380163be73f43ad0d.png)
![](https://img-blog.csdnimg.cn/img_convert/30ce7de8be6c49b08312512670d6c18b.png)