From 1e94ef3226c32ae8868ffaa9c3b3aa96293cbaa9 Mon Sep 17 00:00:00 2001 From: MDN Date: Fri, 20 Aug 2021 00:45:20 +0000 Subject: [CRON] sync translated content --- .../api/animationevent/animationevent/index.html | 130 +++++++++++++++++++++ .../animationevent/initanimationevent/index.html | 129 -------------------- 2 files changed, 130 insertions(+), 129 deletions(-) create mode 100644 files/zh-tw/web/api/animationevent/animationevent/index.html delete mode 100644 files/zh-tw/web/api/animationevent/initanimationevent/index.html (limited to 'files/zh-tw/web/api') diff --git a/files/zh-tw/web/api/animationevent/animationevent/index.html b/files/zh-tw/web/api/animationevent/animationevent/index.html new file mode 100644 index 0000000000..eebaac85f0 --- /dev/null +++ b/files/zh-tw/web/api/animationevent/animationevent/index.html @@ -0,0 +1,130 @@ +--- +title: AnimationEvent.initAnimationEvent() +slug: Web/API/AnimationEvent/AnimationEvent +tags: + - API + - AnimationEvent + - CSSOM + - Method + - Obsolete + - Web Animations +translation_of: Web/API/AnimationEvent/initAnimationEvent +original_slug: Web/API/AnimationEvent/initAnimationEvent +--- +

{{obsolete_header}}{{non-standard_header}}{{ apiref("Web Animations API") }}

+ +

Summary

+ +

The AnimationEvent.initAnimationEvent() method Initializes an animation event created using the deprecated {{domxref("Document.createEvent()", "Document.createEvent(\"AnimationEvent\")")}} method.

+ +

AnimationEvent created this way are untrusted.

+ +
+

Note: During the standardization process, this method was removed from the specification. It has been deprecated and is in the progress of being removed from most implementations. Do not use this method; instead, use the standard constructor, {{domxref("AnimationEvent.AnimationEvent", "AnimationEvent()")}}, to create a synthetic {{domxref("AnimationEvent")}}.

+
+ +

Syntax

+ +
animationEvent.initAnimationEvent(typeArg, canBubbleArg, cancelableArg, animationNameArg, elapsedTimeArg);
+ +

Parameters

+ +
+
typeArg
+
A {{domxref("DOMString")}} identifying the specific type of animation event that occurred. The following values are allowed: + + + + + + + + + + + + + + + + + + + + + +
ValueMeaning
animationstartThe animation has started.
animationendThe animation completed.
animationiterationThe current iteration just completed.
+
+
canBubbleArg
+
A {{domxref("Boolean")}} flag indicating if the event can bubble (true) or not (false).
+
cancelableArg
+
A {{domxref("Boolean")}} flag indicating if the event associated action can be avoided (true) or not (false).
+
animationNameArg
+
A {{domxref("DOMString")}} containing the value of the {{cssxref("animation-name")}} CSS property associated with the transition.
+
elapsedTimeArg
+
A float indicating the amount of time the animation has been running, in seconds, as of the time the event was 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).
+
+ +

Specifications

+ +

This method is non-standard and not part of any specification, though it was present in early drafts of {{SpecName("CSS3 Animations")}}.

+ +

Browser compatibility

+ +

{{ CompatibilityTable }}

+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}{{ CompatGeckoDesktop("6.0") }}
+ Removed in {{ CompatGeckoDesktop("23.0") }}
10.0{{CompatVersionUnknown}}{{CompatVersionUnknown}}
+
+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureAndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{CompatVersionUnknown}}{{ CompatGeckoMobile("6.0") }}
+ Removed in {{ CompatGeckoMobile("23.0") }}
10.0{{CompatVersionUnknown}}{{CompatVersionUnknown}}
+
+ +

See also

+ + diff --git a/files/zh-tw/web/api/animationevent/initanimationevent/index.html b/files/zh-tw/web/api/animationevent/initanimationevent/index.html deleted file mode 100644 index de5c7efe15..0000000000 --- a/files/zh-tw/web/api/animationevent/initanimationevent/index.html +++ /dev/null @@ -1,129 +0,0 @@ ---- -title: AnimationEvent.initAnimationEvent() -slug: Web/API/AnimationEvent/initAnimationEvent -tags: - - API - - AnimationEvent - - CSSOM - - Method - - Obsolete - - Web Animations -translation_of: Web/API/AnimationEvent/initAnimationEvent ---- -

{{obsolete_header}}{{non-standard_header}}{{ apiref("Web Animations API") }}

- -

Summary

- -

The AnimationEvent.initAnimationEvent() method Initializes an animation event created using the deprecated {{domxref("Document.createEvent()", "Document.createEvent(\"AnimationEvent\")")}} method.

- -

AnimationEvent created this way are untrusted.

- -
-

Note: During the standardization process, this method was removed from the specification. It has been deprecated and is in the progress of being removed from most implementations. Do not use this method; instead, use the standard constructor, {{domxref("AnimationEvent.AnimationEvent", "AnimationEvent()")}}, to create a synthetic {{domxref("AnimationEvent")}}.

-
- -

Syntax

- -
animationEvent.initAnimationEvent(typeArg, canBubbleArg, cancelableArg, animationNameArg, elapsedTimeArg);
- -

Parameters

- -
-
typeArg
-
A {{domxref("DOMString")}} identifying the specific type of animation event that occurred. The following values are allowed: - - - - - - - - - - - - - - - - - - - - - -
ValueMeaning
animationstartThe animation has started.
animationendThe animation completed.
animationiterationThe current iteration just completed.
-
-
canBubbleArg
-
A {{domxref("Boolean")}} flag indicating if the event can bubble (true) or not (false).
-
cancelableArg
-
A {{domxref("Boolean")}} flag indicating if the event associated action can be avoided (true) or not (false).
-
animationNameArg
-
A {{domxref("DOMString")}} containing the value of the {{cssxref("animation-name")}} CSS property associated with the transition.
-
elapsedTimeArg
-
A float indicating the amount of time the animation has been running, in seconds, as of the time the event was 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).
-
- -

Specifications

- -

This method is non-standard and not part of any specification, though it was present in early drafts of {{SpecName("CSS3 Animations")}}.

- -

Browser compatibility

- -

{{ CompatibilityTable }}

- -
- - - - - - - - - - - - - - - - - - - -
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari
Basic support{{CompatVersionUnknown}}{{ CompatGeckoDesktop("6.0") }}
- Removed in {{ CompatGeckoDesktop("23.0") }}
10.0{{CompatVersionUnknown}}{{CompatVersionUnknown}}
-
- -
- - - - - - - - - - - - - - - - - - - -
FeatureAndroidFirefox Mobile (Gecko)IE MobileOpera MobileSafari Mobile
Basic support{{CompatVersionUnknown}}{{ CompatGeckoMobile("6.0") }}
- Removed in {{ CompatGeckoMobile("23.0") }}
10.0{{CompatVersionUnknown}}{{CompatVersionUnknown}}
-
- -

See also

- - -- cgit v1.2.3-54-g00ecf