T
T
TheSnegok2022-04-08 09:17:37
css
TheSnegok, 2022-04-08 09:17:37

What is the logic behind the endless repeating carousel?

I saw carousels with slides, and reaching the last and switching to the next one, they do not return to the beginning, but go further only starting from the first slide, the logic of such a carousel is interesting, they create new pictures of the carousel every time or maybe somehow in css you can do animation to repeat everything in a circle?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2022-04-08
@TheSnegok

As soon as the picture is hidden, it is removed from the DOM. And the carousel goes through the array with pictures. As soon as it reaches the end, it starts over. This is the simplest and most clumsy option. Traffic does not eat due to caching, if it is configured

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question