Expand/Collapse Widgets

This is the controlled content for Section 1. It remains hidden until the button above is clicked. You can place any HTML elements inside this .details container.

The expand and collapse actions are animated using CSS transitions for a smoother user experience. The JavaScript simply toggles a class on the parent element, which then drives the CSS changes.

Here you'll find more detailed information related to Section 2.

Feel free to click the button to expand or collapse this section.

This section has less content but demonstrates the same functionality.