HTML details
element doesn't come with built-in animation yet. With the help of Animate.css
, it does!
6 years ago
ReactJS
React Hooks
JavaScript
CodePen
Design
CSS
Animate.css

On toggling the details
element, showing its content with a simple CSS effect transition.
details
is a HTML5 element supported in modern browsers