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

  • Home
  • SEARCH
  • 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 217849
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T18:41:45+00:00 2026-05-11T18:41:45+00:00

I am using Ariel Flesler’s ScrollTo jQuery plugin. Everything is great except when scrolling,

  • 0

I am using Ariel Flesler’s ScrollTo jQuery plugin. Everything is great except when scrolling, the animation drags the cursor over some links which, having :hover triggers, cause a momentary hang up in the animation. Any chance anyone knows how to disable elements :hover functions while the animation is happening?

  • 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-11T18:41:46+00:00Added an answer on May 11, 2026 at 6:41 pm

    When you say the links have “:hover triggers”, do you mean you’ve defined a CSS :hover rule or that you’ve bound a JavaScript function to the hover event?

    If it’s CSS, what properties are you setting that causes the hanging (I can’t duplicate the hanging on my machine with a simple font-size change). As far as I can tell, you can’t prevent a CSS :hover.

    If it’s JavaScript, can’t you just unbind the event before calling scrollTo?

    A little more elaboration or an example would be useful.

    Edit:

    Okay, in response to your comment, basically you have to unbind the mouseenter and mouseleave events before you use scrollTo:

    $(...).unbind('mouseenter mouseleave');
    

    Demo

    Visit http://demos.flesler.com/jquery/scrollTo/#target-examples and run the following code in Firebug.

    You can then click on the “test scroll” link to test the code. You should see that the browser does not hang when the mouse hovers over the rest of the links.

    When the scrolling stops you can click on any of the “go back” links and it will scroll back, except this time it will not unbind the hover events, so you the browser should hang.

    Note: I did not experience any hanging at all. Are you using a slow computer or an older version of jquery perhaps? Let me know if the demo works as expected.

    /*
      Inject some CSS to add a background to the elements we
      are going to hover over and increase the font-size to 
      make the hover area bigger.
    */
    $('head').append('<style type="text/css"> .back { font-size:3em!important; background-image:url(http://imgs.xkcd.com/comics/useless.jpg); background-repeat:no-repeat; } </style>');
    
    /*
      Setup the hover events -- change the backgroundPosition
      and fade the elements in and out.
    */
    function hoverOn() {    
      $(this)
        .css('backgroundPosition','-95px -210px')
        .fadeTo('normal', 1);
    }
    
    function hoverOff(){
      $(this)
        .css('backgroundPosition','-260px -110px')
        .fadeTo('normal', 0.5);
    }
    
    // Set the default opacity and bind the hover events
    $('.back').not('#pane-target a:first')
      .css('opacity', 0.5)
      .hover(hoverOn, hoverOff);
    
    // Modify the first link so that we can use it to trigger the scroll.
    $('#pane-target a').eq(0)
      .css('backgroundImage', 'none') // Remove the backgroundImage for clarity
      .unbind('click') // unbind the old "go back" behaviour
      .text('test scroll')
      .click(function(){ 
    
        // unbind the hover events so that they don't hang the browser
        $('.back').not('#pane-target a:first')
          .unbind('mouseenter mouseleave');
    
        $('#pane-target').scrollTo(
          'li:eq(5)',
          800,
          {onAfter:function(){
            // re-bind the hover events
            $('.back').not('#pane-target a:first').hover(hoverOn, hoverOff);
          }}
        );
    
        return false;
      });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 213k
  • Answers 213k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Definitely REST - the overhead for SOAP is unnecessary unless… May 12, 2026 at 10:32 pm
  • Editorial Team
    Editorial Team added an answer Cache the total number of results, e.g. by assigning some… May 12, 2026 at 10:32 pm
  • Editorial Team
    Editorial Team added an answer If you are not modifying any of the values after… May 12, 2026 at 10:32 pm

Related Questions

I am using Ariel Flesler's ScrollTo jQuery plugin. Everything is great except when scrolling,
I am using VSTS Unitesting platform. I am trying to test a method which
Please see the screenshot. I am trying to produce a layout that allows me
Before answering, it is not as easy question as you might have thought about
I am just beginning to localize an ASP.NET MVC application. Most of the strings

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.