<!DOCTYPE html>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.box {
width: 200px;
height: 400px;
border: 1px solid red;
margin: 100px auto;
position: relative;
}
.brand {
width: 200px;
height: 400px;
position: absolute;
left: 0;
top: 0;
border: 1px solid black;
background: url(170.png);
transform-origin: 100px 400px;
transition-property: all;
transition-duration: 1.5s;
/* 回弹效果 */
transition-timing-function: linear;
}
.box:hover .brand:nth-child(1) {
transform: rotate(-90deg);
}
.box:hover .brand:nth-child(2) {
transform: rotate(-80deg);
}
.box:hover .brand:nth-child(3) {
transform: rotate(-70deg);
}
.box:hover .brand:nth-child(4) {
transform: rotate(-60deg);
}
.box:hover .brand:nth-child(5) {
transform: rotate(-50deg);
}
.box:hover .brand:nth-child(6) {
transform: rotate(-40deg);
}
.box:hover .brand:nth-child(7) {
transform: rotate(-30deg);
}
.box:hover .brand:nth-child(8) {
transform: rotate(-20deg);
}
.box:hover .brand:nth-child(9) {
transform: rotate(-10deg);
}
.box:hover .brand:nth-child(10) {
transform: rotate(00deg);
}
.box:hover .brand:nth-child(11) {
transform: rotate(10deg);
}
.box:hover .brand:nth-child(12) {
transform: rotate(20deg);
}
.box:hover .brand:nth-child(13) {
transform: rotate(30deg);
}
.box:hover .brand:nth-child(14) {
transform: rotate(40deg);
}
.box:hover .brand:nth-child(15) {
transform: rotate(50deg);
}
.box:hover .brand:nth-child(16) {
transform: rotate(60deg);
}
.box:hover .brand:nth-child(17) {
transform: rotate(70deg);
}
.box:hover .brand:nth-child(18) {
transform: rotate(80deg);
}
.box:hover .brand:nth-child(19) {
transform: rotate(90deg);
}
</style>
<div class="box">
<div class="brand">1</div>
<div class="brand">2</div>
<div class="brand">3</div>
<div class="brand">4</div>
<div class="brand">5</div>
<div class="brand">6</div>
<div class="brand">7</div>
<div class="brand">8</div>
<div class="brand">9</div>
<div class="brand">10</div>
<div class="brand">11</div>
<div class="brand">12</div>
<div class="brand">13</div>
<div class="brand">14</div>
<div class="brand">15</div>
<div class="brand">16</div>
<div class="brand">17</div>
<div class="brand">18</div>
<div class="brand">19</div>
</div>