Skip to content

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.

From city breaks to safaris, we plan trips around how you like to travel. Our travel experts are on call around the clock while you are away.

2Link toggle

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

Thousands of travellers already trust us, and we work hard to keep it that way.

3Horizontal collapse

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

We find the best price, and if you see it cheaper we match it.

4Multiple targets

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

Members get room upgrades and late check-out at selected hotels.
We measure success by how many travellers come back and tell their friends.

5Read more

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

Family rooms, adults-only retreats and pet-friendly stays in one search. Local guides show you the places that never make it into guidebooks.

Friendly people answer your questions quickly, by phone, chat or email. Free cancellation on most stays means you can book now and decide later. Local guides show you the places that never make it into guidebooks.

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
#ORD-2006$602.25
Billed to Elena Sato, Kyoto. Due Dec 2, 2026.
#TX-4173$90.56
Billed to Nadia Varga, Montreal. Due Dec 3, 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
56.6k
9% this week

11Open by default

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

Friendly people answer your questions quickly, by phone, chat or email. Airport transfers, tours and dinners are arranged before you arrive.

12Rotating chevron

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

Start in minutes and get help from a real person whenever you need it.

13Comments thread

Keep a feed short and let readers open the replies.

Flexible dates help you find quieter weeks and better prices.

Tariq Hughes
Tariq Hughes We listen first, then build a plan around what you actually need.
Jonah Carter
Jonah Carter Every hotel on our list is visited and reviewed by our own travel team.

14Release notes

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

Version 4.3 Stable
Dec 24, 2025
  • Flexible dates
  • Flexible dates
  • Faster loading on slow connections

15Specification list

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

Weight
7.1 kg
Dimensions
25 x 22 x 20 cm
Warranty
3 years

16Expandable search bar

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

Halois Co

17Onboarding checklist

Each checklist step expands to explain what to do.

Every detail is handled by people who care about getting it right.

Travel insurance and car rental can be added in a single click.

Every trip supports local businesses and responsible tourism.

18Swap two panels

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

Read-only view: We measure success by how many travellers come back and tell their friends.

19Grouped notifications

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

  • Family rooms, adults-only retreats and pet-friendly stays in one search.
    • We keep things simple, so you can focus on what matters to you.
    • We find the best price, and if you see it cheaper we match it.

20Nested collapse

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

From city breaks to safaris, we plan trips around how you like to travel.

  • Design: $4,458.80
  • Development: $18,408.87
  • Marketing: $5,420.66