CssAnimationBuilder

export class CssAnimationBuilder

exported from angular2/animate defined in angular2/src/animate/css_animation_builder.ts (line 3)

Constructor

constructor(browserDetails: BrowserDetails)

Accepts public properties for CssAnimationBuilder

Members

data : CssAnimationOptions

Not Yet Documented

browserDetails : BrowserDetails

Not Yet Documented

addAnimationClass(className: string) : CssAnimationBuilder

Adds a temporary class that will be removed at the end of the animation

addClass(className: string) : CssAnimationBuilder

Adds a class that will remain on the element after the animation has finished

removeClass(className: string) : CssAnimationBuilder

Removes a class from the element

setDuration(duration: number) : CssAnimationBuilder

Sets the animation duration (and overrides any defined through CSS)

setDelay(delay: number) : CssAnimationBuilder

Sets the animation delay (and overrides any defined through CSS)

setStyles(from: {[key: string]: any}, to: {[key: string]: any}) : CssAnimationBuilder

Sets styles for both the initial state and the destination state

setFromStyles(from: {[key: string]: any}) : CssAnimationBuilder

Sets the initial styles for the animation

setToStyles(to: {[key: string]: any}) : CssAnimationBuilder

Sets the destination styles for the animation

start(element: HTMLElement) : Animation

Starts the animation and returns a promise