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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:48:18+00:00 2026-05-26T10:48:18+00:00

How do I animate text color with jQuery/jQuery UI. The text is currently #000.

  • 0

How do I animate text color with jQuery/jQuery UI. The text is currently #000. when an event is triggered I want the text color to go #F00 then fade back to #000 over 3 seconds.

I tried effect("highlight", {}, 3000) with highlight but it doesn’t re-trigger the effect until is completed and will then continue doing it for the amount of time it was triggered… not really useful for this.

Any ideas?

C

UPDATE:

this is what I have now:

$("input:text[name=size_w]").keyup(function () {
            var value = ($("input:text[name=size_w]").val() == "") ? "null" : $("input:text[name=size_w]").val();
            $("#width_emb").text(value).css({ color: "red" }).animate({ color: "black" }, 3000);
        }).keyup();

But it’s still not working the way I need. I can’t re-trigger the initial color change until the animation is finished. if the event is re-triggered before the 3 seconds is u I need to abandon the animation as start it again.

  • 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-26T10:48:19+00:00Added an answer on May 26, 2026 at 10:48 am

    You need JqueryUI it adds support for colour animation

    http://jqueryui.com/demos/animate/

    From the JQueryUI site:

    The jQuery UI effects core extends the animate function to be able to animate colors as well. It’s >heavily used by the class transition feature and it’s able to color animate the following properties:

    • backgroundColor
    • borderBottomColor
    • borderLeftColor
    • borderRightColor
    • borderTopColor
    • color
    • outlineColor

    In response to the updated question if you are halfway through an animation and you want it to stop or restart if you click again you can call .stop()
    http://api.jquery.com/stop/
    You can also use this to clear any queued animations.

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

Sidebar

Related Questions

I'm doing an animate with JQuery UI. I've go an icon which I want
I have a jQuery tab section - and I want to animate the panels
I want to use jQuery to animate a simple vertical menu that can be
I'm using the .animate function from the jquery.color.js library to highlight a label on
I have some text and I want it to change color in a manner
I have this code : <script type=text/javascript src=settings/jquery-1.5.min.js></script> <script type=text/javascript src=settings/jquery.color.js></script> <script type=text/javascript> function
I'm using jQuery to animate a fade-in transition for a <div> element that I
Imagine you want to animate some object on a WinForm. You setup a timer
I'm trying to animate a block level element using jQuery. The page loads with
I am trying to animate an object, let's say its a car. I want

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.