REFERENCE
- Gallery page: https://magpui.com/en/i/neon-refractive-logo-constellation-hero-d72ba9
- First frame (image): https://dnioievkvxejjbxgwvko.supabase.co/storage/v1/object/public/media/neon-refractive-logo-constellation-hero-d72ba9/shot.jpg
- Clip (mp4): https://dnioievkvxejjbxgwvko.supabase.co/storage/v1/object/public/media/neon-refractive-logo-constellation-hero-d72ba9/clip.mp4
- Original post: https://x.com/hours/status/2119170020412629369 by @hours
Before building, download the first frame and look at it. If ffmpeg is available, download the clip and extract frames (ffmpeg -i clip.mp4 -vf fps=2 frame-%02d.png), then study the motion frame by frame. Match what you see; the text below describes it, the frames are the truth.
BUILD: A dark landing hero for a plans page: a short white headline ('Now you have options.') with a small 'See plans' pill, above a horizontal arc of chunky 3D glyphs (abstract tool and company-style marks) rendered in glowing electric cyan. In the centre sits a rounded-square glass app icon with a white monogram; the glass refracts and bends the cyan shapes behind it. The glyphs light up one after another as if switched on, then idle with a slow float. It should feel premium and slightly playful, like a product shot on a black stage.
DESIGN SYSTEM: Full-bleed background #000000 with a very subtle radial lift (#0A0F14) behind the arc. Minimal top nav: small logo left, 4 links 12px #BDBDBD centered, Login pill right. Headline: bold geometric sans 44-56px, white #FFFFFF, tight tracking -0.02em, centered at about 18% of the viewport height; 'See plans' pill 28px tall, #1A1A1A fill, 12px label, radius 999px. 3D glyphs: emissive cyan #19D3FF to #0AA5E0, slightly rounded bevelled extrusions about 120-180px tall, with a bloom halo; arranged on a shallow arc across 80% of the width, some tilted 10-25 degrees. Centre icon: 180px rounded square (radius 40px) of clear glass with thin bright edges and a white monogram. Floor: dark mirror with a soft cyan reflection and a blue glow pool #0B4F8A at 20% opacity under the group.
MOTION: Intro: headline fades and rises 12px over 600ms cubic-bezier(0.22,1,0.36,1). Glyphs start as dark unlit shapes (only faint rim light) and switch on left to right with a 120ms stagger: emissive intensity 0 -> 1.4 -> 1 over 450ms cubic-bezier(0.34,1.56,0.64,1), plus a 0.9 -> 1 scale. Idle: each glyph floats on Y by 6-10px and rotates ±4 degrees on a 4-6s sine loop with random phase. Pointer move: the whole group parallax-rotates up to 6 degrees towards the cursor, lerped at 0.08 per frame, so the glyphs shift behind the glass and the refraction visibly changes. Hovering the 'See plans' pill brightens it to white with dark text over 200ms.
SECTIONS: Parts: nav bar, headline, CTA pill, glyph arc (8-12 glyphs), central glass icon, reflective floor and glow. States: unlit (pre-intro), lighting sequence, idle float, pointer parallax, reduced motion (all lit, static).
IMPLEMENTATION: React Three Fiber with drei: extrude SVG paths for the glyphs (ExtrudeGeometry with bevel), MeshStandardMaterial with emissive cyan, EffectComposer Bloom for the glow, MeshTransmissionMaterial for the glass icon (thickness ~1.5, chromaticAberration ~0.05, ior ~1.4), MeshReflectorMaterial for the floor. Keep the HTML headline and nav in the DOM over the canvas for SEO and accessibility. prefers-reduced-motion: render a single lit still frame (or a static image fallback). Limit transmission resolution and DPR to 1.5 on mobile; pause the render loop when the hero is offscreen. The canvas is aria-hidden; the CTA is a real link with a visible focus ring.
ADAPT TO THE PROJECT: Reuse the project's design tokens, fonts and nav component, map colors to the closest existing tokens, and never copy logos or brand marks from the original: use abstract placeholder glyphs (letters, arrows, geometric symbols) instead of real company logos.
SUCCESS CHECK:
- On load the glyphs switch on in sequence and settle into a gentle float without stutter.
- Moving the pointer visibly shifts the glyphs behind the glass icon and the refraction changes.
- With reduced motion the hero is a static lit composition and the headline and CTA remain readable and focusable.