Skip to content
Pixelera

Collapse

Collapse shows and hides content with a short animation. Point a button or link at the target with data-ui-toggle="collapse", keep aria-expanded and aria-controls in sync, and use it for read-more text, filter panels, sub-menus and expandable rows.

1Button toggle

A button with data-ui-toggle="collapse" shows and hides the target.

You receive photos and updates showing exactly what your donation achieved. We listen first, then build a plan around what you actually need.

2Link toggle

A link with href="#id" and role="button" works the same way.

Monthly gifts let us plan ahead and respond quickly when disaster strikes.

3Horizontal collapse

collapse-horizontal animates the width; the content needs a fixed width.

A school kit costs less than a cinema ticket and lasts a whole year.

4Multiple targets

One button can toggle several elements by targeting a shared class.

Our annual report is independently audited and published in full.
Clean water wells are built with and maintained by local communities.

5Read more

Show the first part of a text and reveal the rest on demand.

Local partners know their communities and make sure help arrives where it matters. Thousands of donors already trust us, and we work hard to keep it that way.

Start in minutes and get help from a real person whenever you need it. Local partners know their communities and make sure help arrives where it matters. Monthly gifts let us plan ahead and respond quickly when disaster strikes.

6Filter panel

A filter button above a table reveals extra search fields.

7Sidebar sub-menus

Nested navigation where each section expands to show its links.

8Expandable table rows

A detail row under each table row opens with a small toggle.

InvoiceAmountDetails
#TX-2483$830.44
Billed to Liam Silva, Edinburgh. Due Feb 13, 2027.
#TX-4503$606.71
Billed to Mateo Duarte, Oslo. Due Nov 28, 2026.

9Advanced form options

Hide rarely used settings behind an "Advanced" toggle.

10Minimisable card

A header button collapses the card body, as in dashboard widgets.

Traffic
33.0k
18% this week

11Open by default

Add .show to start expanded; the button's aria-expanded is then true.

We listen first, then build a plan around what you actually need. Ninety cents of every dollar goes directly to the projects you support.

12Rotating chevron

A chevron that turns when the panel opens, driven by aria-expanded in CSS.

A school kit costs less than a cinema ticket and lasts a whole year.

13Comments thread

Keep a feed short and let readers open the replies.

Leave a gift in your will and help future generations.

Lucas Fischer
Lucas Fischer Every donation is tax-deductible, and receipts arrive by email instantly.
Tariq Whitaker
Tariq Whitaker Thousands of donors already trust us, and we work hard to keep it that way.

14Release notes

A compact version line that expands into the full change list.

Version 5.8 Stable
Aug 12, 2026
  • Secure giving
  • Impact tracking
  • Faster loading on slow connections

15Specification list

A definition list of technical details hidden behind a full-width toggle.

Weight
2.0 kg
Dimensions
48 x 31 x 10 cm
Warranty
1 years

16Expandable search bar

A search icon in a header opens a full-width search field below it.

Pixelera

17Onboarding checklist

Each checklist step expands to explain what to do.

Our team has done this many times, so you never have to guess.

We keep things simple, so you can focus on what matters to you.

We measure success by how many donors come back and tell their friends.

18Swap two panels

Two collapses sharing a class swap places: one hides while the other shows.

Read-only view: You receive photos and updates showing exactly what your donation achieved.

19Grouped notifications

Older notifications collapse into a single "show earlier" row.

  • Volunteers give their time in schools, shelters and food banks every week.
    • Clean water wells are built with and maintained by local communities.
    • Every detail is handled by people who care about getting it right.

20Nested collapse

A collapse inside another for drilling into details step by step.

We have helped more than two hundred thousand people since we started.

  • Design: $1,137.43
  • Development: $19,226.18
  • Marketing: $2,060.27