.wrapper .box-wrap {
width: 80%;
height: 80%;
margin: calc((100% - 100%) / 2) calc((100% - 100%) / 2);
position: relative;
transform: rotate(46deg);
}
.wrapper .box-wrap .box.one {
animation: moveGradient 15s infinite, oneMove 4.5s infinite;
}
.wrapper .box-wrap .box.two {
animation: moveGradient 15s infinite, twoMove 4.5s 0.15s infinite;
}
.wrapper .box-wrap .box.three {
animation: moveGradient 15s infinite, threeMove 4.5s 0.3s infinite;
}
@keyframes moveGradient {
to {
background-position: 100% 50%;
}
}
.enlarged {
transform: scale(1.2);
transition: transform 0.8s ease-in-out; /* Плавное изменение размера */
}
.paused {
animation-play-state: paused;
}
</spoiler>
document.addEventListener('DOMContentLoaded', function() {
setTimeout(() => {
const boxes = document.querySelectorAll('.one, .two, .three');
boxes.forEach(box => {
box.classList.add('paused', 'enlarged');
});
}, 2000);
});