This page is Almost Ready

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

pseudoElement

Summary

A DOMString, starting with "::", containing the name of the pseudo-element the animation runs on. If the animation runs on the element rather than on a pseudo-element, this property contains an empty string, "".

Property of dom/AnimationEventdom/AnimationEvent

Syntax

Note: This property is read-only.

var result = element.pseudoElement;

Examples

//for a predefined animation event
var myAnimEvent = new AnimationEvent();
// . . .
//retrieve the pseudo-element if used
var myAnimPseudoElem = myAnimEvent.pseudoElement;