Built for Motion
Log in

GSAP Theme Shift Tabs with Circle Wipe, 3D Letter Flips and Flip Pill

proOn ClickOn ScrollMouse MoveOn HoverAutoplay
Loading preview

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 components

Built with the same techniques

(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.