Skip to content

Commit 1ef95f2

Browse files
longo-andrealongo-andrea
authored andcommitted
CSS-animations
1 parent b761f4e commit 1ef95f2

File tree

9 files changed

+148
-148
lines changed

9 files changed

+148
-148
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11

2-
CSS to animate both `width` and `height`:
2+
Qui vedete il CSS per animare sia `width` che `height`:
33
```css
4-
/* original class */
4+
/* classe originale */
55

66
#flyjet {
77
transition: all 3s;
88
}
99

10-
/* JS adds .growing */
10+
/* JS aggiunge il ridimensionamento */
1111
#flyjet.growing {
1212
width: 400px;
1313
height: 240px;
1414
}
1515
```
1616

17-
Please note that `transitionend` triggers two times -- once for every property. So if we don't perform an additional check then the message would show up 2 times.
17+
Notate che `transitionend` si innesca due volte, una per ogni proprietà. Quindi senza definire un controllo adeguato, il messaggio verrà mostrato due volte.

7-animation/2-css-animations/1-animate-logo-css/task.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@ importance: 5
22

33
---
44

5-
# Animate a plane (CSS)
5+
# Animate un aereo (CSS)
66

7-
Show the animation like on the picture below (click the plane):
7+
Definite un animazione che si comporti come quella mostrata nella figura sotto (cliccate l'areo):
88

99
[iframe src="solution" height=300]
1010

11-
- The picture grows on click from `40x24px` to `400x240px` (10 times larger).
12-
- The animation takes 3 seconds.
13-
- At the end output: "Done!".
14-
- During the animation process, there may be more clicks on the plane. They shouldn't "break" anything.
11+
- L'immagine si ridimensiona al click da `40x24px` a `400x240px` (10 volte più grande).
12+
- L'animazione ha una durata di 3 secondi.
13+
- Al terminte dovrete mostrare: "Done!".
14+
- Durante l'animazione, potrebbero esserci più click sull'aereo. Questi non dovrebbero rompere nulla.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
We need to choose the right Bezier curve for that animation. It should have `y>1` somewhere for the plane to "jump out".
1+
Dovete scegleire la giusta curva di Bezier per questa animazione. Deve avere un valore `y>1` in qualche punto per far si che l'aereo cresca.
22

3-
For instance, we can take both control points with `y>1`, like: `cubic-bezier(0.25, 1.5, 0.75, 1.5)`.
3+
Ad esempio, potete impostare entrambi i punti di controllo con `y>1`, come: `cubic-bezier(0.25, 1.5, 0.75, 1.5)`.
44

5-
The graph:
5+
La curva:
66

77
![](bezier-up.svg)

7-animation/2-css-animations/2-animate-logo-bezier-css/task.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ importance: 5
22

33
---
44

5-
# Animate the flying plane (CSS)
5+
# Animate il volo dell'aereo (CSS)
66

7-
Modify the solution of the previous task <info:task/animate-logo-css> to make the plane grow more than its original size 400x240px (jump out), and then return to that size.
7+
Modificate la soluzione del task precedente <info:task/animate-logo-css> per far si che l'aereo cresca in dimensioni (dimensionmi originali 400x240px), e successivamente ritorna alla sua dimnensione originale.
88

9-
Here's how it should look (click on the plane):
9+
Cosi è come dovrebbe apparire (cliccate sull'aereo):
1010

1111
[iframe src="solution" height=350]
1212

13-
Take the solution of the previous task as the source.
13+
Prendete la soluzione del task precedente come punto di partenza.

7-animation/2-css-animations/3-animate-circle/task.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ importance: 5
22

33
---
44

5-
# Animated circle
5+
# Animate il cerchio
66

7-
Create a function `showCircle(cx, cy, radius)` that shows an animated growing circle.
7+
Create una funzione `showCircle(cx, cy, radius)` che mostri un cerchio che cresce.
88

9-
- `cx,cy` are window-relative coordinates of the center of the circle,
10-
- `radius` is the radius of the circle.
9+
- `cx,cy` sono le coordinate del centro del cerchio rispetto alla finestra del browser,
10+
- `radius` è il raggio del cerchio.
1111

12-
Click the button below to see how it should look like:
12+
Cliccahte il bottone sotto per vedere come dovrebbe apparire:
1313

1414
[iframe src="solution" height=260]
1515

16-
The source document has an example of a circle with right styles, so the task is precisely to do the animation right.
16+
Potente prendere lo stile del cerchio dal codice sorgente, concentrandovi unicamente sull'animazione.

7-animation/2-css-animations/4-animate-circle-callback/task.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
# Animated circle with callback
2+
# Animate il cerchio con callback
33

44
Nel task <info:task/animate-circle> è mostrato un cerchio crescente animato.
55

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

Lines changed: 122 additions & 122 deletions
Large diffs are not rendered by default.

7-animation/2-css-animations/boat.view/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<script>
1414
boat.onclick = function() {
1515

16-
this.onclick = null; // only the first click should start the animation
16+
this.onclick = null; // solo il primo click dovrebbe avviare l'animazione
1717

1818
let times = 1;
1919

7-animation/2-css-animations/boat.view/style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
transition: margin-left 3s ease-in-out;
55
}
66

7-
/* flipping the picture with CSS */
7+
/* invertiamo l'immagine con il CSS */
88
.back {
99
transform: scaleX(-1);
1010
filter: fliph;

0 commit comments

Comments
 (0)