Package org.loboevolution.events
Interface AnimationEvent
- All Superinterfaces:
Event
- All Known Implementing Classes:
AnimationEventImpl
The AnimationEvent interface represents events providing information related to animations.
- See Also:
-
Field Summary
Fields inherited from interface org.loboevolution.events.Event
AT_TARGET, BUBBLING_PHASE, CAPTURING_PHASE, NONE
-
Method Summary
Modifier and TypeMethodDescriptionThe AnimationEvent.animationName read-only property is a DOMString containing the value of the animation-name CSS property associated with the transition.double
The AnimationEvent.elapsedTime read-only property is a float giving the amount of time the animation has been running, in seconds, when this event fired, excluding any time the animation was paused.The AnimationEvent.pseudoElement read-only property is a DOMString, starting with '::', containing the name of the pseudo-element the animation runs on.Methods inherited from interface org.loboevolution.events.Event
getBubbles, getCancelable, getComposed, getComposedPath, getCurrentTarget, getDefaultPrevented, getEventPhase, getReturnValue, getSrcElement, getStopImmediatePropagation, getStopPropagation, getTarget, getTimeStamp, getTrusted, getType, initEvent, initEvent, initEvent, preventDefault
-
Method Details
-
getAnimationName
String getAnimationName()The AnimationEvent.animationName read-only property is a DOMString containing the value of the animation-name CSS property associated with the transition.- See Also:
-
getElapsedTime
double getElapsedTime()The AnimationEvent.elapsedTime read-only property is a float giving the amount of time the animation has been running, in seconds, when this event fired, excluding any time the animation was paused. For an animationstart event, elapsedTime is 0.0 unless there was a negative value for animation-delay, in which case the event will be fired with elapsedTime containing (-1 * delay).- See Also:
-
getPseudoElement
String getPseudoElement()The AnimationEvent.pseudoElement read-only property is a DOMString, starting with '::', containing the name of the pseudo-element the animation runs on. If the animation doesn't run on a pseudo-element but on the element, an empty string: ''.- See Also:
-