Short video: Transformations (scale, rotate, translate, perspective, skew...)

13 Dec 2022 · 2 min
1:39

In this short French tutorial, the speaker demonstrates how to move an element using CSS transform translate when the user hovers over it. He explains that translate takes two parameters (X and Y offsets) and shows a concrete example (translate(100px, 50px)) that moves the element 100 px to the right and 50 px down relative to its original position. To make the motion smooth, he adds a 0.5 s transition for both the hover state and the default state, allowing the element to animate back when the cursor leaves. He then contrasts translate with the shorthand alternatives translateX and translateY, noting that the latter accept a single value and affect only one axis, but that using translate with both values is more concise than writing two separate rules.

Chapters

More from Yamossoun

8:56
youtube.com

Compteur synchrone - Logique séquentielle

2w ago
11:58
youtube.com

Compteur asynchrone et diviseur de fréquence - Logique séquentielle

3w ago
11:37
youtube.com

Les registres (parallèle et à décalage) - Logique séquentielle

1mo ago
6:14
youtube.com

Bascule T (Toggle) - Logique séquentielle

1mo ago
12:05
youtube.com

Bascule JK - Logique séquentielle

1mo ago
9:17
youtube.com

Bascule D flip-flop active sur front montant - Logique séquentielle

1mo ago
10:08
youtube.com

Bascule D Latch - Logique séquentielle

1mo ago
8:13
youtube.com

Bascule RS - Logique séquentielle

1mo ago
5:04
youtube.com

Logique séquentielle - Introduction

2mo ago
1:15
youtube.com

Le codeur - Logique combinatoire #codeur #logique #circuit #booleanlogic

2mo ago
1:56
youtube.com

Algorithme de calcule de la racine carrée par dichotomie #dichotomy #squareroot #algorithm

3mo ago
See all content