Expand / Collapse Widget

Accessible expand/collapse widget using a button and a controlled container (class "details"). Each widget is wrapped in a div.example.

Press Space or Enter to toggle
This example demonstrates dynamic height animation