Javascript animation of CSS classes? -



Javascript animation of CSS classes? -

is possible animate replacement of class in javascript?

let's consider have this:

.class1 {background-color:blue;} .class2 {background-color:red;}

is there javascript library can ease alter between 2 classes? wouldn't create user's computer explode?

if not, way of achieving that? server-generated javascript file?

yes, jquery can when have jqueryui loaded well.

see demo here: http://jqueryui.com/demos/addclass/

here's illustration specific css. http://jsfiddle.net/hhept/

div { width: 100px; height: 100px; } .class1 {background-color:blue;} .class2 {background-color:red;}​ <div class='class1'></div> $('div').addclass('class2', 1000);

javascript css

Comments

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -