Passer au contenu principal
Bluvy Tube
Appuyez sur Échap pour quitter le plein écran
Volume m
/
i
Mode Cinéma t
f
/
Placing items in a circle used to require JavaScript trigonometry. Now you can build a circular gallery using CSS only. Here is how to do it in 5 simple steps. #CSS #WebDev #Frontend 1/6

Raccourcis clavier

Espace K
Lecture / pause
← →
Reculer / avancer de 5 s
J L
Reculer / avancer de 10 s
0–9
Aller à 0 %–90 % de la vidéo
Home End
Début / fin
, .
Image précédente / suivante (en pause)
< >
Ralentir / accélérer
↑ ↓
Volume
M
Couper / rétablir le son
C
Sous-titres
F
Plein écran
I
Image dans l’image
T
Mode cinéma
?
Afficher cette aide

Placing items in a circle used to require JavaScript trigonometry. Now you can build a circular gallery using CSS only. Here is how to do it in 5 simple steps. #CSS #WebDev #Frontend 1/6

0 vue Publié le 06/11/2026 21:00 0:13
Placing items in a circle used to require JavaScript trigonometry. Now you can build a circular gallery using CSS only. Here is how to do it in 5 simple steps. #CSS #WebDev #Frontend 1/6
1 commentaire
?
1. The math setup and star layout.

CSS variables define the number of items and offset distance.
Rotate the container based on the item index.
Then push each item outward with translateX.
This creates a perfect circle layout.

2/6
2. The ghost wrapper strategy.

Moving an item on hover can break the hover state.
This problem causes annoying flickering.
To fix this keep the parent item on the circle.
Animate only the child element visually on hover.

3/6
Voir le post d'origine sur Bluesky
Lien copié dans le presse-papier

Connexion

Il est temps de faire une pause

Ça fait 30 minutes que vous enchaînez les vidéos : accordez-vous 5 minutes loin de l'écran. Levez-vous, étirez-vous, buvez un verre d'eau… Les vidéos vous attendront ici.