From 258ba7b4be62d8640477a3bd3146d08b00cb70ec Mon Sep 17 00:00:00 2001 From: julieng Date: Fri, 17 Sep 2021 20:59:20 +0200 Subject: convert content to md --- files/fr/web/css/animation-play-state/index.md | 94 +++++++++++--------------- 1 file changed, 40 insertions(+), 54 deletions(-) (limited to 'files/fr/web/css/animation-play-state/index.md') diff --git a/files/fr/web/css/animation-play-state/index.md b/files/fr/web/css/animation-play-state/index.md index c0dcf45efb..9a1e643d7a 100644 --- a/files/fr/web/css/animation-play-state/index.md +++ b/files/fr/web/css/animation-play-state/index.md @@ -7,17 +7,18 @@ tags: - Reference translation_of: Web/CSS/animation-play-state --- -
{{CSSRef}}
+{{CSSRef}} -

La propriété animation-play-state définit si une animation est en cours d'exécution ou si elle est en pause.

+La propriété **`animation-play-state`** définit si une animation est en cours d'exécution ou si elle est en pause. -
{{EmbedInteractiveExample("pages/css/animation-play-state.html")}}
+{{EmbedInteractiveExample("pages/css/animation-play-state.html")}} -

Lorsqu'on reprend une animation en pause, celle-ci reprendra où elle avait été interrompue (elle ne recommencera pas depuis le début de la séquence).

+Lorsqu'on reprend une animation en pause, celle-ci reprendra où elle avait été interrompue (elle ne recommencera pas depuis le début de la séquence). -

Syntaxe

+## Syntaxe -
/* On a une seule animation */
+```css
+/* On a une seule animation */
 animation-play-state: running;
 animation-play-state: paused;
 
@@ -29,30 +30,27 @@ animation-play-state: paused, running, running;
 animation-play-state: inherit;
 animation-play-state: initial;
 animation-play-state: unset;
-
+``` -

Valeurs

+### Valeurs -
-
running
-
L'animation est en cours.
-
paused
-
L'animation est en pause.
-
+- `running` + - : L'animation est en cours. +- `paused` + - : L'animation est en pause. -
-

Note : Lorsqu'on utilise plusieurs valeurs, séparées par des virgules, pour une propriété animation-*, elles seront respectivement affectées aux animations définies par {{cssxref("animation-name")}}. Pour plus d'informations, voir : paramétrer les valeurs des propriétés pour plusieurs animations.

-
+> **Note :** Lorsqu'on utilise plusieurs valeurs, séparées par des virgules, pour une propriété `animation-*`, elles seront respectivement affectées aux animations définies par {{cssxref("animation-name")}}. Pour plus d'informations, voir : [paramétrer les valeurs des propriétés pour plusieurs animations](/fr/docs/Web/CSS/Animations_CSS/Utiliser_les_animations_CSS). -

Syntaxe formelle

+### Syntaxe formelle {{csssyntax}} -

Exemples

+## Exemples -

CSS

+### CSS -
p {
+```css
+p {
   animation-duration: 3s;
   animation-name: glissement;
   animation-iteration-count: infinite;
@@ -76,53 +74,41 @@ animation-play-state: unset;
     margin-left: 0%;
     width: 100%;
   }
-}
+} +``` -

HTML

+### HTML -
<p class="arret">
+```html
+

La Chenille et Alice se considérèrent un instant en silence. Enfin la Chenille sortit le houka de sa bouche, et lui adressa la parole d’une voix endormie et traînante. -</p> +

-<p class="encours"> +

Alice, un peu irritée du parler bref de la Chenille, se redressa de toute sa hauteur. -</p>

+

+``` -

Résultat

+### Résultat -

{{EmbedLiveSample("Exemples","300","200")}}

+{{EmbedLiveSample("Exemples","300","200")}} -

Spécifications

+## Spécifications - - - - - - - - - - - - - - - -
SpécificationÉtatCommentaires
{{SpecName('CSS3 Animations', '#animation-play-state', 'animation-play-state')}}{{Spec2('CSS3 Animations')}}Définition initiale.
+| Spécification | État | Commentaires | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------ | -------------------- | +| {{SpecName('CSS3 Animations', '#animation-play-state', 'animation-play-state')}} | {{Spec2('CSS3 Animations')}} | Définition initiale. | -

{{cssinfo}}

+{{cssinfo}} -

Compatibilité des navigateurs

+## Compatibilité des navigateurs -

{{Compat("css.properties.animation-play-state")}}

+{{Compat("css.properties.animation-play-state")}} -

Voir aussi

+## Voir aussi - +- [Manipuler les animations CSS](/fr/docs/Web/CSS/CSS_Animations/Utiliser_les_animations_CSS) +- {{domxref("AnimationEvent", "AnimationEvent")}} -- cgit v1.2.3-54-g00ecf