Adding activeanimation class when needed