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
+24-24Lines changed: 24 additions & 24 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -135,54 +135,54 @@ La început pare a fi cea mai complicată proprietate. Dar devine foarte simplă
135
135
136
136
Această proprietate acceptă două tipuri de valori: o curbă Bezier sau pași. Să începem cu curba, deoarece este folosită mai des.
137
137
138
-
### Bezier curve
138
+
### Curba Bezier
139
139
140
-
The timing function can be set as a [Bezier curve](/bezier-curve) with 4 control points that satisfy the conditions:
140
+
Timing function poate fi setată ca o [curbă Bezier](/bezier-curbă) cu 4 puncte de control care satisfac condițiile:
141
141
142
-
1.First control point: `(0,0)`.
143
-
2.Last control point: `(1,1)`.
144
-
3.For intermediate points, the values of `x`must be in the interval`0..1`, `y`can be anything.
142
+
1.Primul punct de control: `(0,0)`.
143
+
2.Ultimul punct de control: `(1,1)`.
144
+
3.Pentru punctele intermediare, valorile lui `x`trebuie să fie în intervalul`0..1`, `y`poate fi orice.
145
145
146
-
The syntax for a Bezier curve in CSS: `cubic-bezier(x2, y2, x3, y3)`. Here we need to specify only 2nd and 3rd control points, because the 1st one is fixed to`(0,0)`and the 4th one is`(1,1)`.
146
+
Sintaxa pentru o curbă Bezier în CSS: `cubic-bezier(x2, y2, x3, y3)`. Aici trebuie să specificăm doar al 2-lea și al 3-lea punct de control, deoarece primul este fixat la`(0,0)`și al 4-lea este`(1,1)`.
147
147
148
-
The timing function describes how fast the animation process goes.
148
+
Timing function descrie cât de repede se desfășoară procesul de animație.
149
149
150
-
-The`x`axis is the time: `0` -- the start, `1` -- the end of`transition-duration`.
151
-
-The`y`axis specifies the completion of the process: `0` -- the starting value of the property, `1` -- the final value.
The simplest variant is when the animation goes uniformly, with the same linear speed. That can be specified by the curve`cubic-bezier(0, 0, 1, 1)`.
153
+
Cea mai simplă variantă este atunci când animația merge uniform, cu aceeași viteză liniară. Aceasta poate fi specificată prin curba`cubic-bezier(0, 0, 1, 1)`.
154
154
155
-
Here's how that curve looks:
155
+
Iată cum arată această curbă:
156
156
157
157

158
158
159
-
...As we can see, it's just a straight line. As the time (`x`) passes, the completion (`y`) of the animation steadily goes from `0`to`1`.
159
+
...După cum putem vedea, este doar o linie dreaptă. Pe măsură ce trece timpul (`x`), finalizarea animației (`y`) trece constant de la `0`la`1`.
160
160
161
-
The train in the example below goes from left to right with the permanent speed (click it):
161
+
Trenul din exemplul de mai jos merge de la stânga la dreapta cu viteză constantă (apară-l):
162
162
163
163
[codetabs src="train-linear"]
164
164
165
-
The CSS `transition`is based on that curve:
165
+
CSS `transition`se bazează pe această curbă:
166
166
167
167
```css
168
168
.train {
169
169
left: 0;
170
170
transition: left5scubic-bezier(0, 0, 1, 1);
171
-
/* click on a train sets left to 450px, thus triggering the animation*/
171
+
/* click pe tren setează stânga la 450px, declanșând astfel animația*/
172
172
}
173
173
```
174
174
175
-
...And how can we show a train slowing down?
175
+
...Și cum putem arăta un tren care încetinește?
176
176
177
-
We can use another Bezier curve: `cubic-bezier(0.0, 0.5, 0.5 ,1.0)`.
177
+
Putem folosi o altă curbă Bezier: `cubic-bezier(0.0, 0.5, 0.5 ,1.0)`.
178
178
179
-
The graph:
179
+
Graficul:
180
180
181
181

182
182
183
-
As we can see, the process starts fast: the curve soars up high, and then slower and slower.
183
+
După cum putem vedea, procesul începe rapid: curba se înalță foarte sus, apoi din ce în ce mai încet și mai încet.
184
184
185
-
Here's the timing function in action (click the train):
185
+
Iată timing function în acțiune (apăsați pe tren):
186
186
187
187
[codetabs src="train"]
188
188
@@ -191,15 +191,15 @@ CSS:
191
191
.train {
192
192
left: 0;
193
193
transition: left5scubic-bezier(0, .5, .5, 1);
194
-
/* click on a train sets left to 450px, thus triggering the animation*/
194
+
/* click pe tren setează stânga la 450px, declanșând astfel animația*/
195
195
}
196
196
```
197
197
198
-
There are several built-in curves: `linear`, `ease`, `ease-in`, `ease-out`and`ease-in-out`.
198
+
Există mai multe curbe built-in: `linear`, `ease`, `ease-in`, `ease-out`și`ease-in-out`.
199
199
200
-
The `linear`is a shorthand for`cubic-bezier(0, 0, 1, 1)` -- a straight line, which we described above.
200
+
`linear`este o prescurtare pentru`cubic-bezier(0, 0, 0, 1, 1)` -- o linie dreaptă, pe care am descris-o mai sus.
201
201
202
-
Other names are shorthands for the following`cubic-bezier`:
202
+
Celelalte denumiri sunt prescurtări pentru următoarele`cubic-bezier`:
0 commit comments