From 074785cea106179cb3305637055ab0a009ca74f2 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:42:52 -0500 Subject: initial commit --- files/ru/web/api/animation/cancel/index.html | 110 +++++++++++++++++++++++++++ 1 file changed, 110 insertions(+) create mode 100644 files/ru/web/api/animation/cancel/index.html (limited to 'files/ru/web/api/animation/cancel') diff --git a/files/ru/web/api/animation/cancel/index.html b/files/ru/web/api/animation/cancel/index.html new file mode 100644 index 0000000000..b5b4d0cd4a --- /dev/null +++ b/files/ru/web/api/animation/cancel/index.html @@ -0,0 +1,110 @@ +--- +title: Animation.cancel() +slug: Web/API/Animation/cancel +translation_of: Web/API/Animation/cancel +--- +

{{ SeeCompatTable() }}{{ APIRef("Web Animations") }}

+ +

Метод cancel() API Web Animation интерфейса {{domxref("Animation")}} очищает все {{domxref("KeyframeEffect")}} вызванной этой анимацией и прекращает его воспроизведение.

+ +
+

Когда анимация отменена, её {{domxref("Animation.startTime", "startTime")}} и {{domxref("Animation.currentTime", "currentTime")}} устанавливаются в null.

+
+ +

Syntax

+ +
Animation.cancel();
+ +

Parameters

+ +

None.

+ +

Return value

+ +

None.

+ +

Exceptions

+ +

Этот метод не выбрасывает напрямую исключения; однако, если {{domxref("Animation.playState", "playState")}} анимации во время отмены ничего кроме "idle", {{domxref("Animation.finished", "current finished promise", "", 1)}} отклоняется с помощью {{domxref("DOMException")}} названным AbortError.

+ +
+
+ +

Specifications

+ + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName('Web Animations', '#dom-animation-cancel', 'Animation.cancel()' )}}{{Spec2('Web Animations')}}Editor's draft.
+ +

Browser compatibility

+ +
{{CompatibilityTable}}
+ +
+ + + + + + + + + + + + + + + + + + + +
FeatureChromeFirefox (Gecko)Internet ExplorerOperaSafari (WebKit)
Basic support{{CompatChrome(39)}}{{CompatGeckoDesktop(48)}}{{CompatNo}}{{CompatOpera(26)}}{{CompatNo}}
+
+ +
+ + + + + + + + + + + + + + + + + + + + + +
FeatureAndroid WebviewChrome for AndroidFirefox Mobile (Gecko)IE PhoneOpera MobileSafari Mobile
Basic support{{CompatChrome(39)}}{{CompatChrome(39)}}{{CompatGeckoMobile(48)}}{{CompatNo}}{{CompatOperaMobile(26)}}{{CompatNo}}
+
+ +

See also

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