GSAP Theme Shift Tabs with Circle Wipe, 3D Letter Flips and Flip Pill
Overview
A product-mood tabs section: picking a mood grows its colour out of the tab as a circle, flips the giant headline over letter by letter in 3D, drops the model away in a blur while the next one rises, and rolls every label over, with a Flip-animated tab pill and an autoplay ring.
A section for the middle of a beauty or fashion page where each product has its own mood: a background, a type colour, a giant two-word headline, a model, a product name, copy and three feature labels. The first word stands behind the model and the second in front of her, so the type and the photo interlock like a magazine cover.
Details
- Category
- Tabs
- Interaction
- On Click + On Scroll + Mouse Move + On Hover + Autoplay
- Trigger
- On Click
- Languages
- React, TypeScript, plain CSS
(01)Keep exploring
All 150 componentsBuilt with the same techniques
No. 130 / Features
GSAP Sticky Scroll Features with Measuring-Tape Annotations
On Scroll · On Hover · Mouse Move · On Click
No. 131 / CTA
GSAP Breathing Call to Action with Cursor Echo Trail
On Scroll · Mouse Move · On Hover · On Click · Autoplay
No. 135 / Scroll
GSAP Pinned Scroll Mosaic That Assembles a Cut-Out from 3D Tiles
On Scroll · Mouse Move · On Hover · On Click
(02)FAQ
GSAP Theme Shift Tabs with Circle Wipe, 3D Letter Flips and Flip Pill — FAQ
01What do I need to install?
npm install gsap @gsap/react. Flip, ScrollTrigger and DrawSVGPlugin ship with gsap. The models use next/image; the styles are plain CSS, so Tailwind isn't required.
02Which fonts does it use?
Bricolage Grotesque as --font-bricolage, loaded with axes ["wdth", "opsz"] so the headline can run condensed, and Fraunces italic as --font-fraunces for the product names. The example loads both with next/font; each falls back to a system face.
03How many moods can I add?
Any number from two up; three or four fit the tab bar best on phones. Each mood needs exactly three features, one per icon row, and a two-word headline.
04Is it accessible?
Yes. The tabs use role="tablist" with roving focus and arrow-key, Home and End support, the panel is labelled by the active tab, hidden moods are hidden from assistive tech, and the rotation can be paused. It also pauses while a keyboard user is inside the section.
05Can I change the timing?
Set holdSeconds for how long each mood holds. The ring around the active tab's dot shows the time left.
06What happens with reduced motion?
There's no autoplay, intro, wipe, flip or parallax. The tabs still switch moods instantly.