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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T16:12:51+00:00 2026-05-27T16:12:51+00:00

Clearly, the intention of this animation is to turn all editable elements to a

  • 0

Clearly, the intention of this animation is to turn all “editable” elements to a blue color in 300 ms, and then slowly fade back to the body background color over the course of 1000 ms. Basically, make them “blink”.

$('#highlight_button').click( function (e) {
    var x = $('body').css('background-color');
    $('.editable').animate({backgroundColor: '#0000ff'}, 300, function() {
                    $('.editable').animate({backgroundColor: x}, 1000); 
    });
});

When the page loads, it always seems to work as intended on the first click. However, with subsequent clicks it fires only periodically, or with a very long delay. I suppose a solution would involve not queuing this animation, but looking around it isn’t clear to me how to do this. Any thoughts?
Thanks in advance!

  • 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-27T16:12:52+00:00Added an answer on May 27, 2026 at 4:12 pm

    Try adding some stops to your animation, like so:

    $('#highlight_button').click( function (e) {
        var x = $('body').css('background-color');
        $('.editable').stop(true, true).animate({backgroundColor: '#0000ff'}, 300, function() {
                        $('.editable').stop(true, true).animate({backgroundColor: x}, 1000); 
        });
    });
    

    Also, just chaining the second animation would probably do the same as putting it in the callback.

    $('#highlight_button').click( function (e) {
        $('.editable').stop(true, true).animate({backgroundColor: '#0000ff'}, 300).animate({backgroundColor: $('body').css('background-color')}, 1000);
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is clearly not the case though. My JS : $(.job_charge.item-block).live({ mouseenter: function(){ $(this).find('.edit-and-delete').stop(true,true).fadeIn();
Apple clearly has this automated in some way, I would like to have access
I believe that this is an issue of scope. All of my attempts to
I see on Guice's download page a module called guice-no-aop, whose intention is clearly
This might be the question that suits to all programming languages(I guess!). I have
I recall a while back seeing an experimental code visualization tool, with the intention
This is incapable of finding the appropriate variable array1 despite it clearly being declared
Clearly, when GROUP BY clause used, columns that are not aggregate function should be
NSURLRequest + NSHTTPURLResponse is clearly the way to role. How do I just grab
How can we clearly differ architectural term abstraction from a software component, can abstraction

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.