Javascript - Album photo reproduisant l'effet domino

10 Feb 2019 · 21 min
20:52

In this French‑language tutorial, the presenter walks through building a dynamic photo‑album that displays images using a domino‑style wave transition. Starting from a simple HTML container, he creates a configurable number of div elements (default 20) that each show a slice of a background image. He explains how to calculate each div’s width, height, and background‑position so the slices reassemble the full picture. He then adds a per‑slice rotation using CSS 3D transforms (perspective and rotateY) and builds a recursive animation with setTimeout to animate the slices, toggling visibility to create a propagating wave effect. The tutorial covers cycling through multiple images, handling edge cases with try/catch when removing previously created divs, and fine‑tuning the animation speed and angle increments. Throughout, the instructor demonstrates live coding, debugging, and iterative refinement, ending with a working album that continuously cycles through five images with a smooth wave transition.

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