Built for Motion
Log in

GSAP Breathing Call to Action with Cursor Echo Trail

proOn ScrollMouse MoveOn HoverOn ClickAutoplay
Loading preview

Overview

A calm, lavender call-to-action section for a wellness app: outline echoes of a giant headline trail the cursor at increasing lag, and a halo behind the model breathes on a guided 4-7-8 cycle that visitors can pause, above magnetic app-store buttons.

A closing call to action for a meditation or wellness app. As it scrolls into view, a halo draws itself open, the headline rises out of a soft blur, six outline copies fan up out of the solid word and fold back in, and the model floats up through a blur before the first breath begins.

Details

Category
CTA
Interaction
On Scroll + Mouse Move + On Hover + On Click + Autoplay
Trigger
On Scroll
Languages
React, TypeScript, plain CSS

(01)Keep exploring

All 150 components

Built with the same techniques

(02)FAQ

GSAP Breathing Call to Action with Cursor Echo Trail — FAQ

01What do I need to install?

npm install gsap @gsap/react. ScrollTrigger, SplitText and DrawSVGPlugin ship with gsap. The styles are plain CSS, so it doesn't need Tailwind, and it uses next/image for the cut-out.

02Which fonts does it use?

Big Shoulders for the headline (with its opsz axis) as --font-big-shoulders, Fraunces as --font-fraunces for the title and countdown, and Figtree as --font-figtree for the small text. The example loads all three with next/font; each falls back to a system face.

03Can I change the breathing rhythm?

Yes. Pass rhythm={[inhale, hold, exhale]} in seconds, for example [4, 4, 4] for box breathing. The halo, the countdown and the scene swell all follow it.

04How do I use my own model, headline and links?

Pass a transparent WebP or PNG as model with its width and height; tall, full-length cut-outs work best. The headline is the lines prop, one entry per line, echoes sets how many copies trail it (1 to 8), and stores takes your App Store and Google Play links.

05Does it keep running off screen?

No. The entrance waits until the section scrolls in, and the trail, icon loops and breathing all rest while it is out of view. If a visitor paused the breathing, it stays paused when they come back.

06What happens with reduced motion?

There is no entrance, trail, swell or grain flicker: the echoes sit still as a stepped extrusion. The button still works as a breathing guide on demand, counting down and labelling each phase without moving the scene.