Expand/Collapse Widget Demo

First Example: Basic Information

This is the first example of an expand/collapse widget. Click the header to toggle the visibility of this content. The content is hidden by default and can be expanded to reveal more details.

  • Item 1: Some detailed information here.
  • Item 2: Additional details for the example.
  • Item 3: More content to demonstrate the expansion.

Second Example: Advanced Features

This second example showcases advanced features of the widget. It includes smooth transitions and icon rotation for better user experience. The content can include various HTML elements like paragraphs, lists, and even forms.

For instance, here's a simple form:



Third Example: Long Content

This example contains longer content to demonstrate how the widget handles more substantial text blocks. The transition effect makes the expansion and collapse smooth and visually appealing.

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt.