Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8368031
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:17:42+00:00 2026-06-09T13:17:42+00:00

Does anyone have any tips on making a pure JS image slider? I am

  • 0

Does anyone have any tips on making a pure JS image slider? I am looking to have it pause after each image and restart after going through all the images. All that I can find are jQuery plugins and I am look to do this with only JS.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T13:17:43+00:00Added an answer on June 9, 2026 at 1:17 pm

    i’d go for something like this:

    var sliderTool = {
        _totalItems : 0,
        _visibleItems : 6,
        _currentOffset : 0,
        _timeout : null,
        next : function(){
            ...
        },
        prev : function(){
            ...
        },
        play : function(){
            ...
        },
        pause : function(){
            ...
        }
    };
    

    as a base.

    every time you set timeout, save it into the _timeout field so you can clearTimeout(sliderTool._timeout) whenever you want.
    next and prev can contain animations or just a simple image replacement. you can add a separate timeout for animation and for intervals between slides.

    you can add an “add()” method to the sliderTool and on window.load or “body onload” add all the images and then run the start() method. you can also dynamically add images after page is loaded

    maybe also add init() for autoloading and basic setup.

    again, this is a basic draft of a possible solution. once you get running you’ll probably run into more specific questions. Overall, as an approach, i recommend trying to come up with some solution first before asking for a general advice 😉

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone have any tips regarding making animated GIFs in R? I'm trying to
Does anyone have any tips that could help speed up a process of breaking
Does anyone have any tips or best practices regarding how Autofac can help manage
I'm trying to locate php_intl.dll and install it. Does anyone have any tips?
I'm a developer making the transition from Linux/Emacs to OSX/Xcode. Does anyone have any
My question has two parts: Does anyone have any tips or references to some
Does anyone have any tips for dealing with ConstraintExceptions thrown by XSD datasets? This
Does anyone have any tips or gotcha moments to look out for when trying
Does anyone have any tips on working with Amazon S3 service and Flash? I
Does anyone have any tips for this scenario. My app delegate's nib has a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.