Change element class without using css animation
        Posted  
        
            by 
                Akshat
            
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Akshat
        
        
        
        Published on 2012-06-02T09:51:22Z
        Indexed on 
            2012/06/02
            10:41 UTC
        
        
        Read the original article
        Hit count: 388
        
I have a class with the following type of css animaton
.cssanimation {
    -webkit-transition: 0.2s all ease-in-out
    -o-transition: 0.2s all ease-in-out
    -moz-transition: 0.2s all ease-in-out
    transition: 0.2s all ease-in-out
    .. some other changes in position
}
I have the div
<div id="thediv"> ... </div>
$('#thediv').addClass('cssanimation') //animates the object
I do use this animation at some point but sometimes I'd like to add it without invoking the animation
Does Jquery have a way in which I can add classes without invoking their css animations?
© Stack Overflow or respective owner