我们的志愿者还没有将这篇文章翻译为 中文 (简体)加入我们帮助完成翻译
您也可以阅读此文章的English (US)版。

This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

Summary

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: ''.

Syntax

name = AnimationEvent.pseudoElement

Specifications

Specification Status Comment
CSS Animations
The definition of 'AnimationEvent.pseudoElement' in that specification.
Working Draft Initial definition.

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
pseudoElement
Experimental
Chrome Full support 68Edge No support NoFirefox Full support 23IE No support NoOpera No support NoSafari No support NoWebView Android Full support 68Chrome Android Full support 68Firefox Android Full support 23Opera Android No support NoSafari iOS No support NoSamsung Internet Android No support No

Legend

Full support  
Full support
No support  
No support
Experimental. Expect behavior to change in the future.
Experimental. Expect behavior to change in the future.

See also

文档标签和贡献者

此页面的贡献者: mdnwebdocs-bot, fscholz, myf, teoli, tregagnon
最后编辑者: mdnwebdocs-bot,