We can now transition to and from display: none

Kevin Powell on YouTubeWatch on YouTube

SaveMark complete

Sign in to save videos and track what you’ve finished.

IntermediateUI21 min

About this video

Shows how to animate elements to and from display: none in CSS using transitions, @starting-style and allow-discrete, with notes on browser support and overlays for popups and dialogs. Aimed at developers who already write CSS.

What you’ll learn

  • Animate an element's display property with CSS transitions
  • Use @starting-style to define entry animation states
  • Add overlay and backdrop handling for popups and dialogs