jQuery: animate text color for input field?

元气小坏坏 提交于 2019-11-28 11:11:57

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.

To animate color you need the jquery color plugin.

matadur

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

You'll need Color Animations plugin for this

Use jQueryUI and your code works as it is.

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!