Skip to content
motionprompts motionprompts

Editorial FAQ Grid

GSAP animation component · Published 2026-11-21 · by vanguardia.dev

Open live demo ↗ Download source

What it does

FAQ laid out on a 12-column editorial grid, number, question and answer in their own columns between hairlines, all open by default. Each question button collapses its answer by tweening height to 0 (0.5s power3.inOut) and reopens it from 0 to auto (0.6s power3.out), while a CSS transition rotates the + from 45° (reads as ×) back to 0°. On entering view the heading rises line by line from a SplitText mask and the rows stagger in.

How it's built

Categoryinteractive
Techgsap
GSAP pluginsScrollTrigger, SplitText
Complexitysection
Performance costmedium
Mobile-safeyes

faq accordion grid editorial height-auto splittext click

Rebuild it with AI

This component's prompt is part of the paid library. Below you can read how it starts; the full prompt, the exact structure, timing and easing an AI agent needs to rebuild the effect, unlocks with any paid plan, yearly or lifetime.

# Editorial FAQ Grid — questions in columns, open by default, collapsible with animated height
## Goal
Build a FAQ section laid out like a magazine page. A header row reads "1." in the first three columns and "Questions" in the remaining nine, both at headline size. Below it, five rows separated by hairlines, each on the same 12-column grid: the number ("1.1", "1.2"…) in columns 1–3, the question as a large button in columns 4–8 with a round "+" icon at its right edge, and the answer in small body type in columns 9–12. Every answer is **open by default** — the content reads without touching anything — and the button folds it away by animating its height to zero; the icon rotates from 45° (an ×) back to 0° (a +). When the section enters the viewport, the heading rises line by line out of a mask and the rows slide up in a short stagger. White page, ink type, one teal accent on hover.
## Tech
Vanilla HTML/CSS/JS, ES modules. `gsap` (npm) with `ScrollTrigger` and `SplitText` (both free since GSAP 3.13): `gsap.registerPlugin(ScrollTrigger, SplitText)`. No smooth scroll. Fonts self-hosted: **Bricolage Grotesque** (variable, display), **Instrument Sans** (body), **IBM Plex Mono** (row numbers on mobile).
## Layout / HTML
```html
<section class="efg" aria-labelledby="efg-t">
  <div class="efg__cab">
    <p class="efg__cab-n" aria-hidden="true">1.</p>
    <h2 class="efg__cab-t" id="efg-t">Questions</h2>
  </div>
…

Premium prompt

Unlock this prompt, and every other one

From $99/year, or $139 once for lifetime access. Commercial license included.

See pricing Or start with the free set Already bought? Sign in

New components in your inbox

One email a week, only when new components ship, each with its live demo and prompt.