# Slider (Nestable) custom with AutoScroll extension

**URL:** <https://forum.bricksbuilder.io/t/slider-nestable-custom-with-autoscroll-extension/25746>\
**Category:** How To\
**Tags:** how-to\
**Created:** [August 29, 2024, 2:58pm UTC](https://forum.bricksbuilder.io/t/slider-nestable-custom-with-autoscroll-extension/25746 "2024-08-29T14:58:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![AlexKingAx](https://forum.bricksbuilder.io/letter_avatar_proxy/v4/letter/a/e19b73/32.png) [@AlexKingAx](https://forum.bricksbuilder.io/u/AlexKingAx)\
**Post date:** [August 29, 2024, 2:58pm UTC](https://forum.bricksbuilder.io/t/slider-nestable-custom-with-autoscroll-extension/25746/1 "2024-08-29T14:58:50Z")

</div>

**Browser** : Chrome 110  
**OS** : Windows  
**URL** : [Link to a page that illustrates this issue](https://luisabasolettowedding.it/home-copia/)  
Hi,  
I was trying to customize the slider for a new site I was building following the splidejs guide.

I inserted the autoscroll extension with the CDN found from the splide.js site.

By inserting this code into a script in the header it started to work, but it doesn’t have an infinite loop and at a certain point you see a white screen when the images end.

```auto
<script src="
https://cdn.jsdelivr.net/npm/@splidejs/splide-extension-auto-scroll@0.5.3/dist/js/splide-extension-auto-scroll.min.js
"></script>
<script>
	document.addEventListener('DOMContentLoaded', (event) => {
  setTimeout(() => {
    // Accedi all'istanza dello slider usando l'ID 'hlbozx'
    const mySlider = window.bricksData?.splideInstances['hlbozx'] || false;

    if (mySlider) {
      // distruggo la precedente istanza e la reinizializzo
          mySlider.destroy(true);
    mySlider.mount(window.splide.Extensions);
      // Configura le opzioni per il drag libero
      mySlider.options = {
        type : 'loop',
        drag : 'free',
        perPage: 3,
        autoScroll: {
          speed: 1, // Imposta la velocità di auto-scroll
        },
      };
      
    }
  }, 10); // Ritardo per dare tempo a Bricks di inizializzare gli slider
});
</script>

```

I would like to have the infinite loop, but I don’t understand what’s wrong.

These are the bricks slider settings, although I don’t think they interfere.

 ![image](https://forum.bricksbuilder.io/uploads/default/original/3X/5/0/50e542bb58ecab4669c8cec71705dca20ca99787.png)

Try the site directly to better understand the problem.

Thank you  
[Please describe this bug in as much detail as possible so we can replicate & debug this bug]

---

<div class="post-metadata">

**Author:** ![bricks.assistant](https://forum.bricksbuilder.io/user_avatar/forum.bricksbuilder.io/bricks.assistant/32/32537_2.png) [@bricks.assistant](https://forum.bricksbuilder.io/u/bricks.assistant)\
**Post date:** [November 17, 2026, 12:43pm UTC](https://forum.bricksbuilder.io/t/slider-nestable-custom-with-autoscroll-extension/25746/2 "2026-11-17T12:43:37Z")

</div>

We’ve addressed this in Bricks 2.5-beta (beta release), now available for manual download from your Bricks account.

The Slider (Nestable) now has a built-in auto scroll option with configurable speed and direction, so the Splide extension and custom code are no longer needed.

Please read the [changelog entry](https://bricksbuilder.io/release/bricks-2-5-beta/) before testing, and let us know if you experience any issues. Beta builds are not intended for production sites.
