Try The Gridbox Store App Beta

Mon. - Fri. 9 am - 5 pm Ask a Question
Remember me

Slider autoplay

4 months 13 hours ago #1

  • G.'s Avatar
  • G.
  • Posts: 100
Hi, is there a way to create an automatic animation of images in slider pagination style?

Is there a custom code?

3 months 4 weeks ago #2

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 11521
Hello,
Thank you for contacting us

You need to add class for you gallery custom-slider-gallery
and to add JS code to custom JS file of your template
document.addEventListener('DOMContentLoaded', function(){
    jQuery('.custom-slider-gallery').each(function(){
        let $this = this;
        setInterval(function(){
            if (!$this.nextBtn) {
                $this.nextBtn = $this.querySelector('.ba-pagination a.ba-next')
            }
            $this.nextBtn.click();
        }, 2000)
    });
});

Regards,
Vyacheslav, Balbooa.com

3 months 4 weeks ago #3

  • G.'s Avatar
  • G.
  • Posts: 100
It's perfect! :) :) :)

Vyacheslav thank you very much for your help, you are the best!

3 months 4 weeks ago #4

  • Vyacheslav's Avatar
  • Vyacheslav
  • Posts: 11521
You are welcome ;)

If you like our Gallery and support, please take a moment to rate it! :cheer:
extensions.joomla.org/extension/6gallery/

Best Regards,
Vyacheslav, Balbooa Support Team
Powered by Kunena Forum