Code Nation
Candidate (English)
Search
⌃K

Collapsed Accordions

Accordion (collapsed content)

Accordions can toggle through a number of textblocks with a single click, and that greatly enhances the UX of your page.

What are accordions?

An accordion is a component that organizes content within collapsable items.Accordions can toggle through a number of text blocks with a single click, and that greatly enhances the UX of your page. See the gif below, and the live demo at https://campaign.codenation.com/donation_v2

How to add an accordion/collapsed content?

In the content of a page add 2 horizontal lines (<hr>) at the start of the headline and start of the content. See image below