You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/v2/guide/transitions.md
+22-23Lines changed: 22 additions & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -350,7 +350,6 @@ new Vue({
350
350
351
351
### Utilisation à la fois des transitions et des animations
352
352
353
-
354
353
Vue a besoin d'attacher des écouteurs d’événements pour savoir quand une transition est terminée. Cela peut être `transitionend` ou `animationend`, selon le type de règles CSS appliquées. Si vous utilisez seulement l'une ou l’autre, Vue peut automatiquement découvrir le type correct.
355
354
356
355
Toutefois, dans certains cas vous pouvez les avoir à la fois sur le même élément, par exemple avoir une animation de CSS déclenchée par Vue, ainsi qu'un effet de transition CSS lors du survol. Dans ces cas, vous devrez explicitement déclarer le type dont vous voulez que Vue se soucie dans un attribut `type`, avec une valeur à `animation` ou `transition`.
@@ -661,9 +660,9 @@ computed: {
661
660
}
662
661
```
663
662
664
-
### Transition Modes
663
+
### Les modes de transition
665
664
666
-
There's still one problem though. Try clicking the button below:
665
+
Cependant, il existe encore un problème. Essayez de cliquer sur le bouton ci-dessous :
667
666
668
667
{% raw %}
669
668
<divid="no-mode-demo"class="demo">
@@ -694,9 +693,9 @@ new Vue({
694
693
</style>
695
694
{% endraw %}
696
695
697
-
As it's transitioning between the "on" button and the "off" button, both buttons are rendered - one transitioning out while the other transitions in. This is the default behavior of `<transition>`- entering and leaving happens simultaneously.
696
+
Comme c’est une transition entre le bouton « on » et le bouton « off », les deux boutons sont rendus (La transition en fait apparaître un pendant qu'elle fait disparaître l'autre). Il s’agit du comportement par défaut de `<transition>`(l'entrée et la sortie se font simultanément).
698
697
699
-
Sometimes this works great, like when transitioning items are absolutely positioned on top of each other:
698
+
Parfois, cela fonctionne très bien, comme lorsque des éléments de transition sont absolument positionnés l'un sur l'autre :
700
699
701
700
{% raw %}
702
701
<divid="no-mode-absolute-demo"class="demo">
@@ -736,7 +735,7 @@ new Vue({
736
735
</style>
737
736
{% endraw %}
738
737
739
-
And then maybe also translated so that they look like slide transitions:
738
+
Et puis cela peut être interprété comme des transitions de diapositives.
740
739
741
740
{% raw %}
742
741
<divid="no-mode-translate-demo"class="demo">
@@ -782,17 +781,17 @@ new Vue({
782
781
</style>
783
782
{% endraw %}
784
783
785
-
Simultaneous entering and leaving transitions aren't always desirable though, so Vue offers some alternative **transition modes**:
784
+
Les transitions simultanées d'entrée et de sortie ne sont pas toujours désirées, donc Vue propose des **modes de transition** alternatifs :
786
785
787
-
-`in-out`: New element transitions in first, then when complete, the current element transitions out.
786
+
-`in-out`: Les transitions du nouvel élément se passent en premier, puis quand elles sont terminées, les transitions de l'élément actuel s'effectuent.
788
787
789
-
-`out-in`: Current element transitions out first, then when complete, the new element transitions in.
788
+
-`out-in`: Les transitions de l'élément actuel se passent en premier, puis quand elles sont terminées, les transitions du nouvel élément s'effectuent.
790
789
791
-
Now let's update the transition for our on/off buttons with `out-in`:
790
+
Maintenant, mettons à jour la transition pour nos boutons on/off avec `out-in`:
792
791
793
792
```html
794
793
<transitionname="fade"mode="out-in">
795
-
<!-- ... the buttons ... -->
794
+
<!-- ... les boutons ... -->
796
795
</transition>
797
796
```
798
797
@@ -825,9 +824,9 @@ new Vue({
825
824
</style>
826
825
{% endraw %}
827
826
828
-
With one simple attribute addition, we've fixed that original transition without having to add any special styling.
827
+
Avec l'ajout d'un simple attribut, nous avons corrigé cette transition originale sans devoir ajouter un style spécial.
829
828
830
-
The `in-out`mode isn't used as often, but can sometimes be useful for a slightly different transition effect. Let's try combining it with the slide-fade transition we worked on earlier:
829
+
Le mode `in-out`n’est pas utilisé aussi souvent, mais peut parfois être utile pour un effet de transition un peu différent. Essayons de le combiner avec la transition diapositive sur laquelle nous avons travaillé précédemment.
831
830
832
831
{% raw %}
833
832
<divid="in-out-translate-demo"class="demo">
@@ -873,11 +872,11 @@ new Vue({
873
872
</style>
874
873
{% endraw %}
875
874
876
-
Pretty cool, right?
875
+
Assez cool, non ?
877
876
878
-
## Transitioning Between Components
877
+
## Transition entre composants
879
878
880
-
Transitioning between components is even simpler - we don't even need the `key` attribute. Instead, we just wrap a [dynamic component](components.html#Dynamic-Components):
879
+
Faire une transition entre composants est encore plus simple (nous n'avons même pas besoin de l'attribut `key`). Au lieu de cela, nous les enveloppons simplement un [composant dynamique](components.html#Dynamic-Components):
0 commit comments