The Private Equity Associate Certification
Live Online Classes in Design, Coding & AI — Small Classes, Free Retakes
Overview
AI, Data Science & Cloud Certificates from Google, IBM & Meta — 40% Off
One plan covers every Professional Certificate on Coursera. 40% off Coursera Plus Annual.
Unlock All Certificates
Learn how to create smooth animations for details/summary elements using modern CSS in this 13-minute tutorial video. Explore progressive enhancement techniques starting with basic HTML and styling, then dive into advanced features like interpolate-size properties and shadow DOM manipulation. Master the implementation of the ::details-content pseudo-element, discover height animation techniques, and solve transition closing issues. Follow along with provided CodePen examples and browser compatibility references while building an enhanced user interface that gracefully animates expanding and collapsing content sections.
Syllabus
- Introduction
- The HTML and basic styling
- Adding interpolate-size: allow-keywords
- Enable shadow DOM in your devtools
- The ::details-content pseudo-element
- Animating the height
- Fixing the closing transition
Taught by
Kevin Powell