The goog.style.transition Namespace

.Css3Property

A typedef to represent a CSS3 transition property. Duration and delay are both in seconds. Timing is CSS3 timing function string, such as 'easein', 'linear'. Alternatively, specifying string in the form of '[property] [duration] [timing] [delay]' as specified in CSS3 transition is fine too.

@typedef
{ { property: string, duration: number, timing: string, delay: number } | string }

.isSupported()

returns {boolean}
Whether CSS3 transition is supported.

.removeAll(element)

Removes any programmatically-added CSS3 transition in the given element.

element {Element}
The element to remove transition from.

.set(element, properties)

Sets the element CSS3 transition to properties.

element {Element}
The element to set transition on.
properties {goog.style.transition.Css3Property| Array.<goog.style.transition.Css3Property>}
A single CSS3 transition property or array of properties.