See also http://docs.angularjs.org/guide/animations for how to do animations with Angular. In general you can just define the animated properties' start and end states in css classes and Angular manages animation state, rather than adjusting properties by hand in js.