У меня есть Css анимация с jQuery. Мне удается показать их с интервальной функциональностью. Но я не могу понять, как установить задержки для других элементов, чтобы они не отображались одновременно.
Возможно ли применить это в чистом s css без использования jQuery?
jQuery(document).ready(function($) {
var counter = 0;
var randomInt = 0;
window.setInterval(function(){
randomPosition()
}, 3850);
randomPosition();
function randomPosition() {
$('.animation-circle--item').each( function(){
randomInt = Math.floor(Math.random() * 500);
$(this).css({
left: Math.floor(Math.random() * 100) + 5 + '%',
top: Math.floor(Math.random() * 100) + 5 + '%',
width: randomInt,
height: randomInt
},0);
})
}
});
https://codepen.io/makbbt/pen/zYGYoKz