Answer the question
In order to leave comments, you need to log in
How to make the execution of a function infinite with a delay?
You need to make a slider like on the main zoom page. Where it is written about clients. To make 5 logos disappear and 5 appear. And so constantly.
Final variant. It is necessary to make the infinite execution of the function with a delay.
for (let i = 5; i < 0; i++) {
$('.carousel__first').toggle('1000');
$('.carousel__second').toggle('1000');
}
Answer the question
In order to leave comments, you need to log in
https://learn.javascript.ru/settimeout-setinterval
In addition to cyclicity, they can be written to a variable and cleared.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question