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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T00:54:44+00:00 2026-06-05T00:54:44+00:00

My .shake() effect is giving me the business across multiple browsers. For instance, in

  • 0

My .shake() effect is giving me the business across multiple browsers. For instance, in Chrome, if I hover quickly, I get a queue buildup problem. If I try implementing .stop() before my shake effect, the element will begin its downward shake and then just hang there without the animation completing and with the element completely out of place.
In IE, the animation fires more than once (even if I haven’t hovered quickly in and out). And annoyingly, if I keep the mouse on the link, it will fire the animation over and over and over.

I’ve tried playing around with .stop() and different variations of its true/false arguments. I’ve also tried using queue:false on each step of the animation. I even tried putting the .shake effect with times:0 on the mouseleave portion of the function (with hilarious results). At a loss as to what to try next.

My code is below, but here is a link to the menu with the shake problem.

$(document).ready(function () {
    $('.shake').hover(function () {
        $(this).animate({
            'color': '#fc0'
        }, 150).effect('shake', {
            times: 1,
            distance: 12,
            direction: 'down'
        }, 50);
    }, function () {
        $(this).animate({
            'color': '#8a600f'
        }, 500);
    });
  • 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-05T00:54:45+00:00Added an answer on June 5, 2026 at 12:54 am

    My first thought was to add .stop(true,true) just before each .animate(), but you said you’ve tried that.

    You can test whether the element is currently animated and only queue a new animation if needed:

    $('.shake').hover(function() {
        var $this = $(this);
        if (!$this.is(":animated")) {
           $this.animate({
                'color': '#fc0'
           },150).effect(
                'shake', {
                times:1,
                distance:12,
                direction: 'down'
           }, 50 );
        }
    }, function () {
        $(this).animate({
           'color': '#8a600f'
        },500); 
    });
    

    See the :animated selector doco for more info.

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

Sidebar

Related Questions

I'm newbie on this, I'm trying to apply the shake effect to a dialog
i've found a shake effect in stackoverflow question ( here ) Code is like
I want to shake an #error_message div. I'm doing: $('#error_message').effect('shake', {times: 2, distance: 5},
I am attempting to make an element shake upon hover without using jQuery UI
How to achieve an android:background change effect on multiple Views at the same time,
I have this code: $('.pic_windows img').mouseenter(function () { $(this).effect('shake', { times : 4, distance
I get this error with PHPass: Warning: is_readable(): open_basedir restriction in effect. File(/dev/urandom) is
I'm implementing shake gestures as described in this answer however if I shake my
I'm trying to shake a window, but got error mess in console. My code:
I succesfully implemented the shake gesture, but now I would like to limit it

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.