Back to Content

AnimationEvent: pseudoElement property

files/en-us/web/api/animationevent/pseudoelement/index.md

latest1.1 KB
Original Source

{{APIRef("Web Animations")}}

The AnimationEvent.pseudoElement read-only property is a string, 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: ''.

Value

A string, starting with '::', containing the name of the pseudo-element the animation runs on.

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}

See also

  • Using CSS animations
  • Animation-related CSS properties and at-rules: {{cssxref("animation")}}, {{cssxref("animation-delay")}}, {{cssxref("animation-direction")}}, {{cssxref("animation-duration")}}, {{cssxref("animation-fill-mode")}}, {{cssxref("animation-iteration-count")}}, {{cssxref("animation-name")}}, {{cssxref("animation-play-state")}}, {{cssxref("animation-timing-function")}}, {{cssxref("@keyframes")}}.
  • The {{domxref("AnimationEvent")}} interface it belongs to.