Members
- 
			
<static> supported :boolean
Whether or not transitions are supported by the current browser.
 - 
	
Details
 - 
			
<static> end :string
The
transitionendevent name for the current browser. - 
	
Description
Depending on the browser this returns one of the following values:
"transitionend""webkitTransitionEnd""msTransitionEnd""oTransitionEnd"null- If the browser doesn't support transitions
Details
 
Methods
- 
			
<static> duration( $element [, def ] ) → {number}
Gets the
transition-durationvalue for the supplied jQuery element. - 
	
Parameters
Name Type Attributes Default Description $elementjQuery The jQuery element to retrieve the duration from.
defnumber <optional> 0 The default value to return if no duration is set.
Returns
Details
 - 
			
<static> start( $element, className [, state [, timeout ] ] ) → {jQuery.Deferred}
Start a transition by toggling the supplied
classNameon the$element. - 
	
Description
This method lets us use CSS transitions by toggling a class and using the
transitionendevent to perform additional actions once the transition has completed across all browsers. In browsers that do not support transitions this method would behave the same as if just calling jQuery's.toggleClassmethod.The last parameter
timeoutis used to create a timer that behaves as a safety net in case thetransitionendevent is never raised and ensures the deferred returned by this method is resolved or rejected within a specified time.Parameters
Name Type Attributes Description $elementjQuery The jQuery element to start the transition on.
classNamestring One or more class names (separated by spaces) to be toggled that starts the transition.
stateboolean <optional> A Boolean (not just truthy/falsy) value to determine whether the class should be added or removed.
timeoutnumber <optional> The maximum time, in milliseconds, to wait for the
transitionendevent to be raised. If not provided this will be automatically set to the elementstransition-durationproperty plus an extra 50 milliseconds.Returns
Details