Сообщение от Black_Star
|
можно ли на CSS реализовать вращение группы дивов
|
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
</head>
<style type="text/css">
@keyframes A_rotate {
0% { transform: rotate(360deg) }
100% { transform: rotate(0deg)}
}
@keyframes B_rotate {
0% { transform: rotate(0deg) }
100% { transform: rotate(360deg)}
}
.dick {
position:relative;
width:100px;
height:100px;
background:red;
border-radius: 50%;
box-shadow: 1px 1px 12px 2px rgba(0,0,0,1);
animation: A_rotate 4s linear infinite normal;
}
.dick > div {
position:absolute;
width:30px;
height:30px;
background:blue;
border-radius: 35%;
color:white;
font-size: 24px;
text-align:center;
box-shadow: 1px 1px 12px 2px rgba(0,0,0,1);
animation: B_rotate 4s linear infinite normal;
}
.dick > div:nth-child(1){top:-15px;left:35px;}
.dick > div:nth-child(2){top:0px;left:70px;}
.dick > div:nth-child(3){top:35px;left:85px;}
.dick > div:nth-child(4){top:70px;left:70px;}
.dick > div:nth-child(5){top:85px;left:35px;}
.dick > div:nth-child(6){top:70px;left:0px;}
.dick > div:nth-child(7){top:35px;left:-15px;}
.dick > div:nth-child(8){top:0px;left:0px;}
</style>
<body>
<div class="dick">
<div>В</div>
<div>о</div>
<div>з</div>
<div>м</div>
<div>о</div>
<div>ж</div>
<div>н</div>
<div>о</div>
</div>
</body>
</html>