Title: How to stop loop
Last modified: November 15, 2024

---

# How to stop loop

 *  [Dmitri Martin](https://wordpress.org/support/users/dmitriamartin/)
 * (@dmitriamartin)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/how-to-stop-loop/)
 * I want the slider to stop after displaying the last image. I thought not enabling
   infinite loop would cause it to stop but it just loops backwards when reaching
   the end. Am I missing something? If not, is there some javascript code I could
   add to make it stop?

Viewing 1 replies (of 1 total)

 *  Plugin Author [Virgildia](https://wordpress.org/support/users/virgildia/)
 * (@virgildia)
 * [1 year, 6 months ago](https://wordpress.org/support/topic/how-to-stop-loop/#post-18139073)
 * [@dmitriamartin](https://wordpress.org/support/users/dmitriamartin/) you will
   need to use custom JS. Check Slick [events](https://kenwheeler.github.io/slick/#:~:text=IE9%20and%20lower-,Events,-In%20slick%201.4).

Viewing 1 replies (of 1 total)

The topic ‘How to stop loop’ is closed to new replies.

 * ![](https://ps.w.org/carousel-block/assets/icon.svg?rev=2024115)
 * [Carousel Slider Block for Gutenberg](https://wordpress.org/plugins/carousel-block/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/carousel-block/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/carousel-block/)
 * [Active Topics](https://wordpress.org/support/plugin/carousel-block/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/carousel-block/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/carousel-block/reviews/)

## Tags

 * [infinite loop](https://wordpress.org/support/topic-tag/infinite-loop/)

 * 1 reply
 * 2 participants
 * Last reply from: [Virgildia](https://wordpress.org/support/users/virgildia/)
 * Last activity: [1 year, 6 months ago](https://wordpress.org/support/topic/how-to-stop-loop/#post-18139073)
 * Status: not resolved