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 466431
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T23:28:41+00:00 2026-05-12T23:28:41+00:00

I have tested the scrollTo() plugin, but I need a way to stop the

  • 0

I have tested the scrollTo() plugin, but I need a way to stop the scrolling animation, so I am looking at serialScroll().

Here is what I used with scrollTo:

$('#scroller').scrollTo('1000px', 3000);

My question is, how do I do this same thing with serialScroll? I can’t get it to work the same way as scrollTo, isn’t that what it is suppose to do, just add tons of extra options?!

  • 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-05-12T23:28:41+00:00Added an answer on May 12, 2026 at 11:28 pm

    As SerialScroll binds several events (incuding thestop event) you can use toggle to start/stop the scrolling based on clicks:

    // setup serialScroll to scroll the images in the 'serialScroll-test' div along
    // the y-axis.
    $('#serialScroll-test').serialScroll({items: 'img', duration: 2000, axis: 'y', interval: 1, force: true});
    // since we used the "force: true" option to auto-start the animation we use
    // "stop" as the first function to toggle and "start" second.
    $('#serialScroll-test').toggle(function(){ 
      $('#serialScroll-test').trigger('stop.serialScroll'); 
    }, function() { 
      $('#serialScroll-test').trigger('start.serialScroll'); 
    });
    

    On the following HTML:

      <div id="serialScroll-test" style="float: left; width: 600px; height: 333px; overflow: hidden;"> 
        <img class="scrollable" src="http://farm4.static.flickr.com/3489/3849497254_4722754872.jpg" alt="IMG_7997" /> 
        <img class="scrollable" src="http://farm3.static.flickr.com/2487/3867263002_f6b368d983.jpg" alt="IMG_8005" /> 
        <img class="scrollable" src="http://farm3.static.flickr.com/2528/4043006363_81931d7985.jpg" alt="IMG_2235" /> 
      </div> 
    

    Example (edit the source)

    note: when the stop event is called the animation stops on the item being scrolled to, not immediately. So if you click on the first image while it is scrolling to the second one the animation will continue till the second image is in view and then stop. This also means that when using cycle: true (the default) if you click during the return to the first image the animation will continue till the first image is in view and then stop.

    EDIT:

    After looking a bit deeper I found this post on Ariel Flesler’s blog (the plugins author). In the snippets section a script is included on how to stop the animation on hover. It includes a note:

    // You can temove the .stop() to let it finish the active animation
    ...
       $(this).stop().trigger('stop');
    ...
    

    Notice the additional stop() in the trigger. Based on the code I posted above you can change the toggle() function to:

    $('#serialScroll-test').toggle(function(){ 
      $('#serialScroll-test').stop().trigger('stop.serialScroll'); 
    }, function() { 
      $('#serialScroll-test').stop().trigger('start.serialScroll'); 
    });
    

    to produce the desired effect. Updated example here (edit it)

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

Sidebar

Related Questions

I have tested my pages in Firefox & IE and looking at Firebug in
i have a input tag which is non editable, but some times i need
I have tested the following query in LINQPad and it runs fine, but VS2010
I have tested different base64 encoders mig64,iHarder,sun etc. Seems like these need to have
I am struggling with geolocation on simulator, but recently, I have tested it directly
Im having trouble with sessions in IE. I have tested in IE 7-8, but
I have tested this on Android and it works great but on iPhone it
I have tested all my systems developed in Delphi (in Windows XP) on Wine
I have a Rails app that I have successfully tested with Mongrel and Webkit.
I have this regex I built and tested in regex buddy. _ [ 0-9]{10}+

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.