
The inchworm menu
Menus, Hover, Transitions
The FAQ of Arvelle Motors, a made-up car dealership, on white, in the premium style of Dribbble shots: three tabs on top, Financing, Trade-in and Warranty. Changing tab, the white plate stretches towards the new topic and catches up, the old questions leave one after another and the new ones come in staggered from the side of the tab, while the accordion takes its new height on a spring. The answer unrolls on the spring, the plus turns into a minus on a cobalt square and the figures (rate, months, years of cover) pop out in small tags. At the bottom «Still have questions?» with a pill button that swells and sends the request.
A folder that runs on its own: index.html, style.css, script.js and the libraries from a CDN. The React and Vue tabs hold the same demo as a ready component, which switches its animations off when it leaves the page.
<!doctype html>
<!--
"FAQ by topic" from Animorio · https://animorio.com
License: free on your own sites and your clients’ sites, paid work included.
Not for resale, redistribution, templates or code collections · https://animorio.com/en/license/
-->
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>The car dealer FAQ split by topic</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fontsource-variable/mona-sans@5.3.0/wdth.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<main class="stage">
<!-- the questions of a made-up car dealership, Arvelle Motors, split by topic: three tabs on top, the questions
that leave and come back staggered, an answer that unrolls on a spring and a way out at the bottom -->
<section class="faq" data-faq aria-label="Questions before you buy">
<span class="faq__sheen" aria-hidden="true"></span>
<header class="faq__head">
<div class="faq__brand">
<svg class="faq__mark" viewBox="0 0 24 24" aria-hidden="true">
<path class="faq__mark-a" d="M6.2 17.4 L12 6.4 L17.8 17.4" />
<path class="faq__mark-b" d="M8.9 13.6 H15.1" />
</svg>
<div>
<h1 class="faq__title">Questions before you buy</h1>
<p class="faq__meta">Arvelle Motors <span aria-hidden="true">·</span> Showroom</p>
</div>
</div>
<span class="faq__chip">FAQ</span>
</header>
<div class="tabs" role="tablist" aria-label="Topics" data-tabs>
<span class="tabs__pill" data-pill aria-hidden="true"><span class="tabs__shine"></span></span>
<button class="tab is-on" role="tab" type="button" id="t-fin" aria-selected="true" aria-controls="g-fin" data-tab="0">
<svg class="tab__ico" viewBox="0 0 24 24" aria-hidden="true"><rect x="3.5" y="6" width="17" height="12" rx="2.6" /><path d="M3.5 10 H20.5 M7 14.4 H10.4" /></svg>
<span class="tab__label">Financing</span>
</button>
<button class="tab" role="tab" type="button" id="t-trade" aria-selected="false" aria-controls="g-trade" data-tab="1" tabindex="-1">
<svg class="tab__ico" viewBox="0 0 24 24" aria-hidden="true"><path d="M4.5 9 H18 M14.5 5.5 L18 9 L14.5 12.5" /><path d="M19.5 15 H6 M9.5 11.5 L6 15 L9.5 18.5" /></svg>
<span class="tab__label">Trade-in</span>
</button>
<button class="tab" role="tab" type="button" id="t-war" aria-selected="false" aria-controls="g-war" data-tab="2" tabindex="-1">
<svg class="tab__ico" viewBox="0 0 24 24" aria-hidden="true"><path d="M12 3.6 L19 6.2 V11.4 C19 15.6 16.1 18.8 12 20.4 C7.9 18.8 5 15.6 5 11.4 V6.2 Z" /><path d="M9 11.9 L11.2 14 L15.2 9.9" /></svg>
<span class="tab__label">Warranty</span>
</button>
</div>
<div class="list" data-list>
<div class="group" role="tabpanel" id="g-fin" aria-labelledby="t-fin" data-group>
<div class="row" data-row>
<button class="q" type="button" aria-expanded="false" aria-controls="a-rate" id="q-rate">
<span class="q__text">What rate can I get?</span>
<span class="plus" aria-hidden="true"><svg viewBox="0 0 24 24"><path class="plus__h" d="M7 12 H17" /><path class="plus__v" d="M12 7 V17" /></svg></span>
</button>
<div class="a" id="a-rate" role="region" aria-labelledby="q-rate" data-answer>
<div class="a__in" data-in>
<p class="a__p">Rates start at 3.9% APR with approved credit. Your advisor locks it in before you sign.</p>
<p class="facts"><span class="fact"><b>3.9%</b> APR from</span><span class="fact"><b>12 to 72</b> months</span></p>
</div>
</div>
</div>
<div class="row" data-row>
<button class="q" type="button" aria-expanded="false" aria-controls="a-down" id="q-down">
<span class="q__text">Can I drive away with nothing down?</span>
<span class="plus" aria-hidden="true"><svg viewBox="0 0 24 24"><path class="plus__h" d="M7 12 H17" /><path class="plus__v" d="M12 7 V17" /></svg></span>
</button>
<div class="a" id="a-down" role="region" aria-labelledby="q-down" data-answer>
<div class="a__in" data-in>
<p class="a__p">Yes, on most new models. A deposit lowers the monthly payment, but it is never required.</p>
<p class="facts"><span class="fact"><b>$0</b> down</span><span class="fact">Same-day approval</span></p>
</div>
</div>
</div>
<div class="row" data-row>
<button class="q" type="button" aria-expanded="false" aria-controls="a-early" id="q-early">
<span class="q__text">Can I pay the loan off early?</span>
<span class="plus" aria-hidden="true"><svg viewBox="0 0 24 24"><path class="plus__h" d="M7 12 H17" /><path class="plus__v" d="M12 7 V17" /></svg></span>
</button>
<div class="a" id="a-early" role="region" aria-labelledby="q-early" data-answer>
<div class="a__in" data-in>
<p class="a__p">Any time, with no fee. Extra payments go straight to the balance, not the interest.</p>
<p class="facts"><span class="fact"><b>No</b> early fees</span></p>
</div>
</div>
</div>
</div>
<div class="group" role="tabpanel" id="g-trade" aria-labelledby="t-trade" data-group>
<div class="row" data-row>
<button class="q" type="button" aria-expanded="false" aria-controls="a-value" id="q-value">
<span class="q__text">How do you value my car?</span>
<span class="plus" aria-hidden="true"><svg viewBox="0 0 24 24"><path class="plus__h" d="M7 12 H17" /><path class="plus__v" d="M12 7 V17" /></svg></span>
</button>
<div class="a" id="a-value" role="region" aria-labelledby="q-value" data-answer>
<div class="a__in" data-in>
<p class="a__p">A 20 minute check on the lot: mileage, tyres, service history and this week's market price.</p>
<p class="facts"><span class="fact"><b>20 min</b> inspection</span><span class="fact">Offer in writing</span></p>
</div>
</div>
</div>
<div class="row" data-row>
<button class="q" type="button" aria-expanded="false" aria-controls="a-owe" id="q-owe">
<span class="q__text">What if I still owe money on it?</span>
<span class="plus" aria-hidden="true"><svg viewBox="0 0 24 24"><path class="plus__h" d="M7 12 H17" /><path class="plus__v" d="M12 7 V17" /></svg></span>
</button>
<div class="a" id="a-owe" role="region" aria-labelledby="q-owe" data-answer>
<div class="a__in" data-in>
<p class="a__p">We pay off your lender directly and take the rest off the price of your next car.</p>
<p class="facts"><span class="fact">Payoff handled</span></p>
</div>
</div>
</div>
<div class="row" data-row>
<button class="q" type="button" aria-expanded="false" aria-controls="a-hold" id="q-hold">
<span class="q__text">How long is the offer good for?</span>
<span class="plus" aria-hidden="true"><svg viewBox="0 0 24 24"><path class="plus__h" d="M7 12 H17" /><path class="plus__v" d="M12 7 V17" /></svg></span>
</button>
<div class="a" id="a-hold" role="region" aria-labelledby="q-hold" data-answer>
<div class="a__in" data-in>
<p class="a__p">Seven days or 300 more miles, whichever comes first. Bring the keys and it is done.</p>
<p class="facts"><span class="fact"><b>7 days</b> guaranteed</span></p>
</div>
</div>
</div>
</div>
<div class="group" role="tabpanel" id="g-war" aria-labelledby="t-war" data-group>
<div class="row" data-row>
<button class="q" type="button" aria-expanded="false" aria-controls="a-cover" id="q-cover">
<span class="q__text">What does the warranty cover?</span>
<span class="plus" aria-hidden="true"><svg viewBox="0 0 24 24"><path class="plus__h" d="M7 12 H17" /><path class="plus__v" d="M12 7 V17" /></svg></span>
</button>
<div class="a" id="a-cover" role="region" aria-labelledby="q-cover" data-answer>
<div class="a__in" data-in>
<p class="a__p">Engine, gearbox, battery and electronics, parts and labour, at any Arvelle service bay.</p>
<p class="facts"><span class="fact"><b>5 years</b></span><span class="fact"><b>60,000</b> miles</span></p>
</div>
</div>
</div>
<div class="row" data-row>
<button class="q" type="button" aria-expanded="false" aria-controls="a-road" id="q-road">
<span class="q__text">Is roadside help included?</span>
<span class="plus" aria-hidden="true"><svg viewBox="0 0 24 24"><path class="plus__h" d="M7 12 H17" /><path class="plus__v" d="M12 7 V17" /></svg></span>
</button>
<div class="a" id="a-road" role="region" aria-labelledby="q-road" data-answer>
<div class="a__in" data-in>
<p class="a__p">Day and night for three years: towing, a flat tyre, a dead battery or keys locked inside.</p>
<p class="facts"><span class="fact"><b>24/7</b> roadside</span></p>
</div>
</div>
</div>
<div class="row" data-row>
<button class="q" type="button" aria-expanded="false" aria-controls="a-extend" id="q-extend">
<span class="q__text">Can I extend it later?</span>
<span class="plus" aria-hidden="true"><svg viewBox="0 0 24 24"><path class="plus__h" d="M7 12 H17" /><path class="plus__v" d="M12 7 V17" /></svg></span>
</button>
<div class="a" id="a-extend" role="region" aria-labelledby="q-extend" data-answer>
<div class="a__in" data-in>
<p class="a__p">Up to the last month of cover. Two more years cost less than one big repair.</p>
<p class="facts"><span class="fact"><b>+2 years</b> from $19/mo</span></p>
</div>
</div>
</div>
</div>
</div>
<footer class="more">
<div class="more__text">
<p class="more__title">Still have questions?</p>
<p class="more__sub">An advisor replies in about 4 minutes.</p>
</div>
<button class="pill" type="button" data-ask>
<span class="pill__bg" data-pill-bg aria-hidden="true"></span>
<span class="pill__rail" data-rail>
<span class="pill__line" data-line="idle"><span class="pill__label" data-label>Talk to us</span></span>
<span class="pill__line" data-line="done" aria-hidden="true">
<svg class="pill__check" viewBox="0 0 24 24"><path data-check d="M6.5 12.4 L10.3 16 L17.6 8.4" /></svg>
<span class="pill__label">Request sent</span>
</span>
</span>
</button>
</footer>
<svg class="hand" data-hand viewBox="0 0 24 24" aria-hidden="true">
<path d="M5.5 3.2 L5.5 18.4 L9.4 14.9 L12 20.6 L14.6 19.4 L12.1 13.9 L17.4 13.6 Z" />
</svg>
</section>
<p class="sr" data-live aria-live="polite"></p>
</main>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.15.0/dist/gsap.min.js"></script>
<script src="script.js"></script>
</body>
</html>Change values, colours and text with the controls and watch the animation respond live. Or write in the code yourself. Then download the folder with your changes.
69 values to change
With the Animorio connector, Claude Code, ChatGPT, Cursor or VS Code take it from here, guide included, and fit it into your project. Paste this request:
Take “FAQ by topic” from Animorio and fit it into my siteEach topic is a group of questions laid absolute at the top of the list, all in the same spot: only the chosen one is visible. The list has no natural height and the script gives it one with GSAP: the number of questions times the row height, plus the open answer. So changing topic or opening an answer moves the height on the same spring, and the heights are measured again when the fonts are ready and on every resize.
The white plate under the tab does not follow a single tween: the script holds two edges, left and right, and moves the one it is heading towards first and then, STRETCH seconds later, the one behind, both on a spring. Half way the plate is longer and then it gathers on the new tab; a cold glint runs through it the same way.
Changing tab, the direction depends on where you go: heading right the old questions leave to the left with a short stagger and power2.in, the new ones come in from the right by SLIDE pixels with a stagger of STAGGER seconds on a spring, and their plus signs swell from 0.7. The old ones, once gone, go back to their place hidden and the open answer closes without animation, so the group is ready for the way back.
The answer has zero height and hidden overflow, and it opens to the measured height of its content on a hand written spring (the response of a spring damped at BOUNCE). The sign turns 180 degrees while the vertical stroke flattens with scaleY and the square fills with cobalt; the question widens on the wdth axis of the variable font and the tags with the figures come in staggered from below, scaling from 0.92.
The button is a pill like the site's: on hover the plate swells with elastic.out and the label widens on the wdth axis up to 116. On the press the plate squashes, the Talk to us line rises away in a drum as tall as the button and Request sent comes in from below with the check drawn by strokeDashoffset; after SENT_HOLD seconds it goes back.
| Name | File | Default | What it changes |
|---|---|---|---|
BOUNCE | script.js | 0.72 | The spring of questions, answers and plate: lower bounces more (0.5), 1 settles without passing the mark. |
STAGGER | script.js | 0.055 | The seconds between one question and the next when a topic comes in. |
SLIDE | script.js | 26 | The pixels the questions travel sideways when the topic changes. |
STRETCH | script.js | 0.16 | How long the back edge of the plate waits behind the front one, in seconds (0 moves it all together). |
SENT_HOLD | script.js | 2.4 | The seconds the button stays on Request sent. |
SPEED | script.js | 1 | How fast the pilot moves (2 twice as fast). |
LOOP | script.js | true | The pilot plays the story again and again. |
For the landing page of a car dealer, a rental or a service with many questions on different topics: the visitor picks the topic they care about (payment, trade-in, warranty) and sees only those questions, without a long list to scroll, and at the bottom finds someone to answer. It also works for the questions of a shop split into shipping, returns and payments, of a hotel or of a subscription app.
The same animation with adapted sizes: the panel is 94% of the screen wide, the row height, the tabs and the spacing are sized on the window height too, and below 420 pixels the small line under «Still have questions?» goes away to leave room for the pill. A finger taps a tab or a question; on a keyboard the arrows move from one tab to the next.
Nothing moves: the plate jumps to the new tab, the old questions fade out and the new ones fade in at their place, the height changes at once, the answer and its tags fade in, the plus becomes a minus as its vertical stroke fades away and the button turns to Request sent as a fade with the check already drawn. The pilot plays the same round without the moving hand.
GSAP 3.15.0, Mona Sans (font variabile) 5.3.0.
Compressed with gzip, the three demo files weigh 11 KB; the libraries: GSAP 28 KB.
Tested on 9 November 2026
Use it in your own projects and in your clients’ projects. Do not resell it or redistribute it as is. GSAP stays under its own Standard license. Full license.
Support Animorio
Animorio stays free thanks to the people who support it. If you like, buy us a coffee: it helps us make the next animations.
You asked for
We made it for you: it’s in the library, with the preview, the Playground and the code to copy.
An animation you can’t find, or a site to take apart in the journal: tell us which. We pick the next ones from here.
With your account’s email and password.
or with your email
You’re signed in as .
With your account, you can download the zip of every animation and every pack, for free.