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
Post a Comment