Animating <details> Element with Only CSS

This post provides the most straightforward and minimum way to animate the HTML detials element using only CSS.