jQuery: animate text color for input field?

后端 未结 6 918
逝去的感伤
逝去的感伤 2020-12-10 14:49

I\'ve got this really simple piece of code that I thought was the correct way to get jQuery to animate the text color for a given input field.

$(\'input\').         


        
相关标签:
6条回答
  • 2020-12-10 15:24

    Use jQueryUI and your code works as it is.

    0 讨论(0)
  • 2020-12-10 15:36

    I found the color plugin to be extremely flaky from one page load to another, even on a static page with the exact same code..! ColorBlend did the job perfectly time though. http://plugins.jquery.com/files/jquery.colorBlend.js_6.txt

    0 讨论(0)
  • 2020-12-10 15:40

    You can do this without the color plugin. I've answered this question here.

    0 讨论(0)
  • 2020-12-10 15:41

    To animate color you need the jquery color plugin.

    0 讨论(0)
  • 2020-12-10 15:42

    You'll need Color Animations plugin for this

    0 讨论(0)
  • 2020-12-10 15:49

    jQuery doesn't support color animations so you'll need the color plugin or, jQuery UI. Both allow you to use the syntax you're using for properties like background-color and color.

    0 讨论(0)
提交回复
热议问题