StealThis .dev

GSAP Hero Intro

Headline and CTA entrance timeline with ambient motion layers.

Open in Lab
gsapcssvanilla-js
Targets: JS HTML

Code

body { margin: 0; font-family: "Avenir Next", sans-serif; background: #070b14; color: #f3f7ff; }
.back { position: fixed; top: 14px; left: 14px; color: #86e8ff; text-decoration: none; z-index: var(--z-ui); }
.hero { min-height: 100vh; display: grid; place-content: center; text-align: center; gap: 0.8rem; position: relative; overflow: hidden; }
.ambient { position: absolute; inset: 0; z-index: var(--z-bg); }
.orb { position: absolute; border-radius: 50%; filter: blur(10px); opacity: 0.6; }
.a { width: 30vw; height: 30vw; left: 8%; top: 20%; background: #6cc9ff55; }
.b { width: 24vw; height: 24vw; right: 12%; top: 12%; background: #d077ff55; }
.c { width: 18vw; height: 18vw; right: 22%; bottom: 14%; background: #ffe7a355; }
.kicker { margin: 0; color: #86e8ff; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(2.2rem, 8vw, 5rem); }
.subtitle { margin: 0; color: #c0cee2; }
.actions { display: flex; gap: .7rem; justify-content: center; flex-wrap: wrap; }
button { border: 0; border-radius: 999px; padding: .75rem 1rem; font-weight: 700; cursor: pointer; }
button:first-child { background: #1f2f49; color: #fff; }
button:last-child { background: #86e8ff; color: #062030; }

GSAP Hero Intro

Headline and CTA entrance timeline with ambient motion layers.

Source

  • Repository: libs-gen
  • Original demo id: 02-gsap-hero-intro

Notes

Headline and CTA entrance timeline with ambient motion layers.