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/pt-br/web/svg/element/animate/index.html | 102 +++++++++++++++++++++++++ 1 file changed, 102 insertions(+) create mode 100644 files/pt-br/web/svg/element/animate/index.html (limited to 'files/pt-br/web/svg/element/animate') diff --git a/files/pt-br/web/svg/element/animate/index.html b/files/pt-br/web/svg/element/animate/index.html new file mode 100644 index 0000000000..fc2ffb9191 --- /dev/null +++ b/files/pt-br/web/svg/element/animate/index.html @@ -0,0 +1,102 @@ +--- +title: animate +slug: Web/SVG/Element/animate +tags: + - Animação + - Elemento + - SVG +translation_of: Web/SVG/Element/animate +--- +
{{SVGRef}}
+ +

O elemento SVG <animate> fornece uma maneira de animar um atributo de um elemento ao longo do tempo.

+ +
+ + +
<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg">
+  <rect width="10" height="10">
+    <animate attributeName="rx" values="0;5;0" dur="10s" repeatCount="indefinite" />
+  </rect>
+</svg>
+ +

{{EmbedLiveSample('Exemple', 150, '100%')}}

+
+ +

Attributes

+ +

Animation Attributes

+ +
+
Animation timing attributes
+
{{SVGAttr("begin")}}, {{SVGAttr("dur")}}, {{SVGAttr("end")}}, {{SVGAttr("min")}}, {{SVGAttr("max")}}, {{SVGAttr("restart")}}, {{SVGAttr("repeatCount")}}, {{SVGAttr("repeatDur")}}, {{SVGAttr("fill")}}
+
Animation value attributes
+
{{SVGAttr("calcMode")}}, {{SVGAttr("values")}}, {{SVGAttr("keyTimes")}}, {{SVGAttr("keySplines")}}, {{SVGAttr("from")}}, {{SVGAttr("to")}}, {{SVGAttr("by")}}
+
Other Animation attributes
+
Most notably: {{SVGAttr("attributeName")}}, {{SVGAttr("additive")}}, {{SVGAttr("accumulate")}}
+
Animation event attributes
+
Most notably: {{SVGAttr("onbegin")}}, {{SVGAttr("onend")}}, {{SVGAttr("onrepeat")}}
+
+ +

Global attributes

+ +
+
Core Attributes
+
Most notably: {{SVGAttr('id')}}
+
Styling Attributes
+
{{SVGAttr('class')}}, {{SVGAttr('style')}}
+
Event Attributes
+
Global event attributes, Document element event attributes
+
+ +

Usage notes

+ +

This element implements the {{domxref("SVGAnimateElement")}} interface.

+ +

Accessibility concerns

+ +

Blinking and flashing animation can be problematic for people with cognitive concerns such as Attention Deficit Hyperactivity Disorder (ADHD). Additionally, certain kinds of motion can be a trigger for Vestibular disorders, epilepsy, and migraine and Scotopic sensitivity.

+ +

Consider providing a mechanism for pausing or disabling animation, as well as using the Reduced Motion Media Query to create a complimentary experience for users who have expressed a preference for no animated experiences.

+ + + +

Specifications

+ + + + + + + + + + + + + + + + + + + + + +
SpecificationStatusComment
{{SpecName("SVG Animations 2", "#AnimateElement", "<animate>")}}{{Spec2("SVG Animations 2")}}No change
{{SpecName("SVG1.1", "animate.html#AnimateElement", "<animate>")}}{{Spec2("SVG1.1")}}Initial definition
+ +

Browser compatibility

+ +
+ + +

{{Compat("svg.elements.animate")}}

+
-- cgit v1.2.3-54-g00ecf