弃用
This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the
兼容性表格
at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.
非标
此特征是非标准的,且不在标准轨道中。不要在面向 Web 的生产站点中使用它:它不适用于每个用户。实现之间可能存在大的不兼容性,且行为将来可能改变。
TransitionEvent.initTransitionEvent()
method Initializes a transition event created using the deprecated
Document.createEvent("TransitionEvent")
方法。
TransitionEvent
created that way are untrusted.
注意:
this method has been dropped during the standard process. It has been deprecated and is in the progress of been removed from most implementation. Do not use it anymore, use the standard constructor,
TransitionEvent()
, to create a synthetic
TransitionEvent
transitionEvent.initTransitionEvent(typeArg, canBubbleArg, cancelableArg, transitionNameArg, elapsedTimeArg);
DOMString
identifying the specific type of transition event that occurred. The following value is allowed:
| 值 | 含义 |
|---|---|
transitionend
|
The transition completed. |
布尔
flag indicating if the event can bubble (
true
) 或不 (
false)
.
布尔
flag indicating if the event associated action can be avoided (
true
) 或不 (
false)
.
DOMString
containing the name of the CSS property associated with the transition. This value is not affected by the
transition-delay
特性。
float
giving the amount of time the transition has been running, in seconds, when this event fired.
This method is non-standard and not part of any specification, though it was present in early drafts of CSS Transitions .
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
initTransitionEvent
弃用
非标
|
Chrome
No
|
Edge 12 — 79 | Firefox 6 — 23 | IE 10 |
Opera
No
|
Safari Yes |
WebView Android
No
|
Chrome Android
No
|
Firefox Android 6 — 23 |
Opera Android
No
|
Safari iOS Yes |
Samsung Internet Android
No
|
完整支持
不支持
非标。预期跨浏览器支持较差。
弃用。不要用于新网站。
见实现注意事项。
transition
,
transition-delay
,
transition-duration
,
transition-property
,
transition-timing-function
.
TransitionEvent
initTransitionEvent()
AnimationEvent
CSS
CSSConditionRule
CSSGroupingRule
CSSKeyframeRule
CSSKeyframesRule
CSSMediaRule
CSSNamespaceRule
CSSPageRule
CSSRule
CSSRuleList
CSSStyleDeclaration
CSSStyleRule
CSSStyleSheet
CSSSupportsRule
CaretPosition
LinkStyle
MediaQueryList
MediaQueryListListener
Screen
StyleSheet
StyleSheetList