Accordion
A smooth accordion for FAQs and product details. Click a row and it opens with its height animating and the icon flipping, and the text can reveal line by line. Set it to one open at a time or several.
One of 65 GSAP components in React, Vue and HTML.
On mobile
Accordion is in the free Starter Pack.
This exact component in React, Vue and HTML, in your inbox, ready when you're back at your desk. No card, no trial.
Where this component came from.
We built it for good-fella.com, our own site, and kept it in the library once it earned its place. The same code runs in production today.
What you'll need.
Install
- GSAP
- SplitText
Concepts
Attributes, tips, use cases and full code are part of access.
The preview and provenance stay public. Tune-it docs, the data-anm-* attribute table, real-world use cases and the copy-ready code unlock the moment you sign in.
Frequently asked
- Does Accordion work with React and Vue?
- Accordion ships as React (Next.js included), Vue 3 (Nuxt included), plain HTML/CSS/JS - the same animation in each format. The React version uses the official useGSAP hook with cleanup handled; the Vue version is a real single-file component with <script setup>.
- Do I need GSAP to use Accordion?
- Yes. Accordion is built on GSAP directly, and GSAP has been 100% free for commercial use, including every plugin, since version 3.13. The component page lists exactly what to install.
- Can I customize Accordion without editing code?
- Accordion exposes 13 tunable controls in the Customize panel on this page - drag the values, watch the live preview respond, and the code you copy carries your exact settings.
- Is Accordion free?
- Accordion is one of the free components. It is delivered as part of the Starter Pack ZIP by email - React, Vue, and HTML included, no expiration, no attribution.
- Can I use Accordion in client projects?
- Yes. The Annnimate license covers commercial and client work - ship Accordion on as many projects as you build, with no attribution required.
- Does Accordion respect prefers-reduced-motion?
- Yes. Every Annnimate component handles prefers-reduced-motion via gsap.matchMedia, so users who opt out of motion get an effectively instant, readable state.
