Passer au contenu principal
Bluvy Tube
Appuyez sur Échap pour quitter le plein écran
Volume m
/
i
Mode Cinéma t
f
/
Animating height to auto in CSS used to be very difficult. New CSS features now make this animation work natively. #WebDev #CSS #Frontend 1/5

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

Animating height to auto in CSS used to be very difficult. New CSS features now make this animation work natively. #WebDev #CSS #Frontend 1/5

0 vue Publié le 28/08/2026 20:03
#webdev #css #frontend
Animating height to auto in CSS used to be very difficult. New CSS features now make this animation work natively. #WebDev #CSS #Frontend 1/5
1 commentaire
?
Developers previously had to animate max-height to huge values.

Others used JavaScript to calculate heights manually.

These workarounds caused awkward timing or poor performance.

2/5
You can enable keyword animations globally with interpolate-size: allow-keywords.

You can also use calc-size(auto, size) for specific components.

This works for height, width, and other sizing properties.

3/5
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.