I have about 100 elements in like and am trying to create an animation with jquery.
I need to a
Adding a class to the parent of all these 100 elements will be faster and defining that class in the css file or page.
.style1 .box{
//define style here
}
This way you just have to manipulate the class of only one element and it is definitely faster than modifying each of the 100 element's style using css
method.
How fast? It all depends on the number of lines of code executed in each of the operations which is again dependent on browser to browser.
If you go with my approach it will definitely be faster.