$animate.enter()

enter(element, parent, [after], [options]); Inserts the element into the DOM either after the after element (if provided) or as the first child within the parent element and then triggers an animation. A promise is returned that will be resolved during the next digest once the animation has completed. Parameters Param Type Details element DOMElement the element which will be inserted into the DOM parent DOMElement the parent element which will append the element as a child (so long

$animate.enabled()

enabled([element], [enabled]); Used to get and set whether animations are enabled or not on the entire application or on an element and its children. This function can be called in four ways: // returns true or false $animate.enabled(); // changes the enabled state for all animations $animate.enabled(false); $animate.enabled(true); // returns true or false if animations are enabled for an element $animate.enabled(element); // changes the enabled state for an element and its children $animat

$animate.cancel()

cancel(animationPromise); Cancels the provided animation. Parameters Param Type Details animationPromise Promise The animation promise that is returned when an animation is started.

$animate.animate()

animate(element, from, to, [className], [options]); Performs an inline animation on the element which applies the provided to and from CSS styles to the element. If any detected CSS transition, keyframe or JavaScript matches the provided className value, then the animation will take on the provided styles. For example, if a transition animation is set for the given classNamem, then the provided from and to styles will be applied alongside the given transition. If the CSS style provided in from

$animate.addClass()

addClass(element, className, [options]); Triggers an addClass animation surrounding the addition of the provided CSS class(es). Upon execution, the addClass operation will only be handled after the next digest and it will not trigger an animation if element already contains the CSS class or if the class is removed at a later step. Note that class-based animations are treated differently compared to structural animations (like enter, move and leave) since the CSS classes may be added/removed at

$anchorScrollProvider.disableAutoScrolling()

disableAutoScrolling(); By default, $anchorScroll() will automatically detect changes to $location.hash() and scroll to the element matching the new hash. Use this method to disable automatic scrolling. If automatic scrolling is disabled, one must explicitly call $anchorScroll() in order to scroll to the element related to the current hash.

$anchorScrollProvider

$anchorScroll provider in module ng Use $anchorScrollProvider to disable automatic scrolling whenever $location.hash() changes. Methods disableAutoScrolling(); By default, $anchorScroll() will automatically detect changes to $location.hash() and scroll to the element matching the new hash. Use this method to disable automatic scrolling. If automatic scrolling is disabled, one must explicitly call $anchorScroll() in order to scroll to the element related to the current hash.

$anchorScroll.yOffset

yOffset numberfunction()jqLite If set, specifies a vertical scroll-offset. This is often useful when there are fixed positioned elements at the top of the page, such as navbars, headers etc. yOffset can be specified in various ways: number: A fixed number of pixels to be used as offset. function: A getter function called everytime $anchorScroll() is executed. Must return a number representing the offset (in pixels). jqLite: A jqLite/jQuery element to be used for specifying the offset. The

$anchorScroll

$anchorScrollProvider service in module ng When called, it scrolls to the element related to the specified hash or (if omitted) to the current value of $location.hash(), according to the rules specified in the HTML5 spec. It also watches the $location.hash() and automatically scrolls to match any anchor whenever it changes. This can be disabled by calling $anchorScrollProvider.disableAutoScrolling(). Additionally, you can use its yOffset property to specify a vertical scroll-offset (eith