Skip to content

Commit f8e2df0

Browse files
committed
translated until line 202
1 parent b6539d1 commit f8e2df0

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

7-animation/2-css-animations/article.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -135,54 +135,54 @@ La început pare a fi cea mai complicată proprietate. Dar devine foarte simplă
135135

136136
Această proprietate acceptă două tipuri de valori: o curbă Bezier sau pași. Să începem cu curba, deoarece este folosită mai des.
137137

138-
### Bezier curve
138+
### Curba Bezier
139139

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:
141141

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.
145145

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)`.
147147

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.
149149

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.
150+
- Axa `x` este timpul: `0` -- începutul, `1` -- sfârșitul `transition-duration`.
151+
- Axa `y` specifică finalizarea procesului: `0` -- valoarea inițială a proprietății, `1` -- valoarea finală.
152152

153-
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)`.
154154

155-
Here's how that curve looks:
155+
Iată cum arată această curbă:
156156

157157
![](bezier-linear.svg)
158158

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`.
160160

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):
162162

163163
[codetabs src="train-linear"]
164164

165-
The CSS `transition` is based on that curve:
165+
CSS `transition` se bazează pe această curbă:
166166

167167
```css
168168
.train {
169169
left: 0;
170170
transition: left 5s cubic-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 */
172172
}
173173
```
174174

175-
...And how can we show a train slowing down?
175+
...Și cum putem arăta un tren care încetinește?
176176

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)`.
178178

179-
The graph:
179+
Graficul:
180180

181181
![](train-curve.svg)
182182

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.
184184

185-
Here's the timing function in action (click the train):
185+
Iată timing function în acțiune (apăsați pe tren):
186186

187187
[codetabs src="train"]
188188

@@ -191,15 +191,15 @@ CSS:
191191
.train {
192192
left: 0;
193193
transition: left 5s cubic-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 */
195195
}
196196
```
197197

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`.
199199

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.
201201

202-
Other names are shorthands for the following `cubic-bezier`:
202+
Celelalte denumiri sunt prescurtări pentru următoarele `cubic-bezier`:
203203

204204
| <code>ease</code><sup>*</sup> | <code>ease-in</code> | <code>ease-out</code> | <code>ease-in-out</code> |
205205
|-------------------------------|----------------------|-----------------------|--------------------------|

0 commit comments

Comments
 (0)