Jquery Plugin To Animate Colors From One Class To Another
There are a lot of jQuery color plugins. However I couldn't find the one to animate between css class declarations. For example doing a smooth animation from .class1 to .class2: .c
Solution 1:
The jQuery animate()
command already allows you to animate colour transitions.
Here's a more striking demo
EDIT:
To get the same effect with CSS classes, there is
jQuery UI's
switchClass(add, remove, duration)
Igor Vieira's
animateToClass plugin
James Padolsey's
animateToSelector plugin
Solution 2:
I think a plugin can be done that will read all computed properties of class A, match them with the properties of class B, animate what it can be animated, and ignore the rest of properties.
I have not seen no one out there but it can be done.
Post a Comment for "Jquery Plugin To Animate Colors From One Class To Another"