Basis for animations in angularjs