Each widget below is wrapped in a div.example and the controlled content container uses the class details.
This example starts expanded. The script will honor the initial aria-hidden value on page load.
Try collapsing and re-opening — the animation should be consistent.