Answer the question
In order to leave comments, you need to log in
How to loop block style changes with delays?
Wrote a simple "carousel", how to make auto scroll?
You need to loop several commands with a delay.
For example, here are the commands that change slides:
$(slide).removeClass('card slide_active');
$(slide).addClass($(target_).attr('class'));
$(target_).attr('class', '');
$(target_).addClass('card slide_active');
Answer the question
In order to leave comments, you need to log in
It is set through the standard JS function - setInterval ().
Sketched a simple example - https://codepen.io/anon/pen/MQJGGm
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question