I want a result like this:
Fade border-color of #mydiv from .color1 to .color2, .color2 to .color3, .color3 to .color4 and then .color4 to .color1.
Why shouldn't the following code work?
$( "#mydiv" ).switchClass( "color1", "color2", 1000 ).switchClass( "color2",
"color3", 1000 ).switchClass( "color3", "color4", 1000 ).switchClass(
"color4", "color1", 1000 );
Dear guys, also let me know if that's easier to get it done using CSS transition.
This Solution might help you.