Javascript animation of CSS classes? -


Is it possible to animate the replacement of the class in JavaScript?

Suppose I have this:

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

Is there a javascript library that can reduce the changes between the two classes? Will not it be able to explode a user's computer?

If not, what would be a good way to get it? Javascript generated from a server file?

Yes, it can do even when you are also full.

See the demo here:

Here is a typical example for your CSS.

  div {width: 100px; Height: 100 pixels; } .class1 {background color: blue;} .class2 {background color: red;} & lt; Div class = 'class1' & gt; & Lt; / Div & gt; $ ('Div') AddClass ('square 2', 1000);  

Comments