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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T03:21:44+00:00 2026-05-27T03:21:44+00:00

I have 4 icons that, on mouse over, scroll a div using jQuery animate.

  • 0

I have 4 icons that, on mouse over, scroll a div using jQuery animate.

The problem is when I hover over all four icons quickly, back and forth, the hover functions are chained together and even on mouse out, the scroll animations still run until all the mouse over events that happened, are completed.

I want to make it so on mouse out, all the events that are waiting to be executed, are cancelled!

Find source below:

<div id="sidebar-slider-nav">
    <div class="testimonials" onmouseover="sidebar_slider(0)"><img src="images/icons/testimonialsIcon.png"/></div>
    <div class="facebook" onmouseover="sidebar_slider(280)"><img src="images/icons/facebookIcon.png"/></div>
    <div class="twitter" onmouseover="sidebar_slider(560)"><img src="images/icons/twitterIcon.png"/></div>
    <div class="news" onmouseover="sidebar_slider(840)"><img src="images/icons/blogIcon.png"/></div>
    <div class="clear"></div>
</div>

and the function that is called is:

function sidebar_slider(val){
    $('#sidebar-slider').animate({scrollLeft:val},500)
}

does anybody know of a better way to do this?

For an example of my problem, please navigate to http://a3mediauk.co.uk and look at the sidebar!

  • 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-27T03:21:45+00:00Added an answer on May 27, 2026 at 3:21 am
    $('#sidebar-slider').stop();
    

    Will clear any existing animation on the element. You can also chain this into your existing code:

    $('#sidebar-slider').stop().animate({scrollLeft:val},500)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the following code to scroll a layer according to mouse position: $(.icons).animate({scrollTo:x},duration);
I have a div with a child div inside it. I'm using jQuery to
I have a custom TrueType font (TTF) that consists of a bunch of icons,
I have a simple Tray icon program that opens a site using System.Diagnostics.Process.Start(URL) And
I have these 3 icons enclosed in separate DIVs all of which are enclosed
We have an application that uses various system tray icons to communicate with users.
I have a function that rotates an object using the canvas element. When I
I'm looking to have a random paragraph element display each time I mouse over
I have a problem of jQuery's live() function not working with click, mousedown but
I have this code: $('a[rel=imagesHandler]').hover( function(){ //ia latimea var liWidth = $(this).width(); $(this).append('<div id=editBar><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.