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: 7-animation/2-css-animations/article.md
+12-12Lines changed: 12 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -510,23 +510,23 @@ Iată un exemplu mai complex, cu `@keyframes`:
510
510
</style>
511
511
```
512
512
513
-
## Summary
513
+
## Sumar
514
514
515
-
CSS animations allow smoothly (or step-by-step) animated changes of one or multiple CSS properties.
515
+
Animațiile CSS permit modificări animate lin (sau pas cu pas) ale uneia sau mai multor proprietăți CSS.
516
516
517
-
They are good for most animation tasks. We're also able to use JavaScript for animations, the next chapter is devoted to that.
517
+
Ele sunt bune pentru majoritatea sarcinilor de animație. De asemenea putem folosi JavaScript pentru animații, următorul capitol este devotat acestui lucru.
518
518
519
-
Limitations of CSS animations compared to JavaScript animations:
519
+
Limitări ale animațiilor CSS în comparație cu animațiile JavaScript:
- Animațiile JavaScript sunt flexibile. Ele pot implementa orice logică de animație, cum ar fi o "explozie" a unui element.
525
+
- Nu doar modificări de proprietăți. Putem crea elemente noi în JavaScript ca parte a animației.
526
526
```
527
527
528
-
In early examples in this chapter, we animate `font-size`, `left`, `width`, `height`, etc. In real life projects, we should use `transform: scale()`and`transform: translate()`for better performance.
528
+
În primele exemple din acest capitol, animăm `font-size`, `left`, `width`, `height`, etc. În proiectele din viața reală, ar trebui să folosim `transform: scale()`și`transform: translate()`pentru o performanță mai bună.
529
529
530
-
The majority of animations can be implemented using CSS as described in this chapter. And the`transitionend`event allows JavaScript to be run after the animation, so it integrates fine with the code.
530
+
Majoritatea animațiilor pot fi implementate folosind CSS așa cum este descris în acest capitol. Iar evenimentul`transitionend`permite ca JavaScript să fie rulat după animație, astfel încât se integrează bine în cod.
531
531
532
-
But in the next chapter we'll do some JavaScript animations to cover more complex cases.
532
+
Dar în capitolul următor vom face câteva animații JavaScript pentru a acoperi cazuri mai complexe.
0 commit comments