Avatar of smfmetro10
Flag for United States of America asked on

How do you use the auto stop feature in jQuery?

I am trying to get the auto stop feature to work in my image slider.

This is what I have but it doesn't work.

Any help would be greatly apprectiated

        jQuery(document).ready(function($) {

			animtype      : 'fade',
            height      : 236,
            width       : 658,
			 autostop:    1,
            responsive  : true


Open in new window


Avatar of undefined
Last Comment
Md Shah

8/22/2022 - Mon

I'm not certain which jQuery slider you're using, but I'm guessing it's the one at http://www.basic-slider.com/ Check out the options at the bottom of that page. Autostop isn't one of the options, but automatic is. If you want the slide to not automatically switch between slides, try changing "autostop: 1" to "automatic: false" in your code.

Thanks for the reply.

Yeah that's the one.  Ideally I would like it to loop through completely once then stop on the first slide.

That slider doesn't have events available so it's not built into the plug-in. You could try looking through the plug-in source code and find anywhere the slide change is being made. Check to see if you're on the last slide. If you are, then set automatic to false and move to the first slide.

The better solution is probably to find a different slider or carousel that has an on change event or has the functionality you want built in.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
Md Shah

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

Outstanding! This works perfectly!
Thank you SO Much!!
Md Shah

Happy To Help :)

Good Luck for further coding !!!