Мне нужно сделать эффект анимации с обручами. Вот изображение того, что нужно. Слева до наведения курсором, справа при наведении.
У меня есть начальный код, но я не знаю как сделать эффект анимации с обручами.
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
min-height: 100vh;
background: blueviolet;
}
.square {
display: flex;
justify-content: center;
align-items: center;
position: relative;
width: 300px;
height: 300px;
}
.square span:nth-child(1) {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 2px solid #ffffff;
border-radius: 100%;
}
.square:hover span:nth-child(1) {
border: none;
background: rgba(106, 1, 46, 0.5);
}
.square span:nth-child(2) {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 2px solid #ffffff;
border-radius: 100%;
}
.square:hover span:nth-child(2) {
border: none;
background: rgba(153, 0, 153, 0.5);
}
.square span:nth-child(3) {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border: 2px solid #ffffff;
border-radius: 100%;
}
.square:hover span:nth-child(3) {
border: none;
background: rgba(102, 0, 157, 0.5);
}
.content {
display: inline-block;
color: #ffffff;
text-align: center;
}
.content h2,
.content p {
z-index: 1;
position: relative;
padding: 10px 20px;
font-family: cursive;
}
.content h2 {
font-size: 20px;
}
.content p {
font-size: 14px;
}
.content a {
display: inline-block;
position: relative;
margin-top: 10px;
padding: 6px 18px;
border: 2px solid #ffffff;
text-decoration: none;
color: #ffffff;
font-weight: bold;
border-radius: 100%;
}
.content a:hover {
background: #ffffff;
color: #330066;
cursor: pointer;
}
<div class="square">
<div class="content">
<span></span><span></span><span></span>
<h2>Осиная талия</h2>
<p>Осиная талия – мечта многих женщин. Заветные сантиметры даются нелегко и требуют постоянных тренировок. Для борьбы с нежелательными формами дамы все чаще выбирают обруч.</p>
<a>Подробнее!</a>
</div>
</div>