This is the basic expand/collapse widget. Click the header to toggle the content visibility. The animation provides smooth transitions for better user experience.
This widget uses CSS transitions for smooth expand/collapse animations. The JavaScript function handles the toggle logic by adding/removing the 'expanded' class.
| Feature | Description |
|---|---|
| Smooth Animation | CSS transition for max-height property |
| Icon Rotation | Visual feedback with rotating arrow |
| Keyboard Accessible | Can be activated with Enter/Space keys |
This widget is particularly useful for FAQs, product specifications, and collapsible form sections.