REFERENCE
- Gallery page: https://magpui.com/en/i/sky-train-hero-with-pixel-cloud-reveal-00dd6f
- First frame (image): https://dnioievkvxejjbxgwvko.supabase.co/storage/v1/object/public/media/sky-train-hero-with-pixel-cloud-reveal-00dd6f/shot.jpg
- Clip (mp4): https://dnioievkvxejjbxgwvko.supabase.co/storage/v1/object/public/media/sky-train-hero-with-pixel-cloud-reveal-00dd6f/clip.mp4
- Original post: https://x.com/heydamir/status/2119384449217384862 by @heydamir
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.
ASSETS
This needs real artwork, not shapes drawn in code. Use the files the user gives you (ask where they are). If you have an image generation tool, generate them with these prompts; otherwise leave clearly marked placeholders.
- Painted sky background: Hand-painted anime film style sky, deep cobalt blue at top fading to pale blue, a towering sunlit cumulus cloud on the right with warm cream highlights and soft lilac shadows, a sea of fluffy clouds along the bottom, no text, no buildings, wide 16:9, high detail
- Railway bridge: Long elevated railway bridge with slim pillars seen from the side, hand-painted anime style, muted brown-gray, crisp edges, transparent background, very wide 8:1
- Vintage train: Small vintage green steam locomotive pulling one brown wooden passenger carriage, side view, hand-painted anime film style, warm afternoon light, transparent background, 4:1
BUILD: A whimsical landing hero for a calm notifications app: a full-bleed painted sky in a soft anime film style, deep blue at the top fading to pale blue, with a towering cumulus cloud on the right and a sea of clouds at the bottom. A long elevated railway bridge on slim pillars crosses the lower third, and a small vintage green steam engine pulling a brown carriage rolls in and stops. On the left, a serif headline 'Notifications on a [envelope icon] timetable' with a short paragraph and a three-stop time slider. It should feel quiet, nostalgic and unhurried, the opposite of a busy SaaS page.
DESIGN SYSTEM: Content max-width 1200px with a left text column (about 40%) and the illustration as the full background. Nav: small app icon + name left, three 13px links in white at 70% opacity, 'Sign in' text and a white 'Book a demo' pill (radius 999px, 32px tall, dark text) right. Headline: elegant transitional serif 56-64px, white #FFFFFF, line-height 1.05, with an inline rounded white envelope glyph sized to the x-height. Body 15px white at 75% opacity, max 360px. Slider: 1px white track at 40% opacity, three dots with time labels (e.g. 09:00, 12:30, 17:15) in 11px, active dot white with a soft glow. Palette: sky #1E4FC9 to #8DB6F0, clouds #FFFFFF to #F1E4D2 with warm shadow tones #C9B8B0, engine #3E6B3F, carriage #8A4B2E, bridge #6E5A52.
MOTION: Intro: the background starts as a coarse 48px pixel mosaic of the sky and sharpens in steps (48 -> 24 -> 12 -> 6 -> 0px) over 900ms with steps easing, then the nav fades in 300ms. The bridge rises 20px and fades in 500ms cubic-bezier(0.22,1,0.36,1). The train slides in from the right over 1800ms cubic-bezier(0.16,1,0.3,1) and settles near center-right, with a 2px wheel bob loop and a small puff of steam. Headline lines fade up 16px with a 90ms stagger, then the slider draws its track left to right over 600ms. Idle: clouds drift horizontally at different speeds (parallax layers, 60-120s loops); dragging or clicking the slider moves the train to a matching position along the bridge over 800ms cubic-bezier(0.65,0,0.35,1).
SECTIONS: Parts: nav, headline with inline icon, body text, time slider, background layers (sky gradient, far clouds, big cumulus, cloud sea, bridge, train). States: pixelated intro, revealed, idle drift, slider scrubbing, reduced motion (final composition, static).
IMPLEMENTATION: Layered PNG/WebP illustrations positioned absolutely, animated with Motion (or GSAP). Do the pixel reveal with a canvas that draws the sky image with imageSmoothingEnabled=false at decreasing downscale factors, or a small WebGL pixelate shader, then swap to the real image. Train and bridge are separate transparent images; steam can be a few blurred white circles. prefers-reduced-motion: skip the reveal and train entrance, show the final scene. The slider is a native range input styled, with labelled stops and keyboard support. Preload and size images responsively; pause cloud drift when the hero is offscreen.
ADAPT TO THE PROJECT: Reuse the project's design tokens, fonts and button components, map colors to the closest existing tokens, and do not copy the original logo, brand name or artwork: generate your own illustrations with the asset prompts.
SUCCESS CHECK:
- The sky resolves from pixels to the full illustration, then the train arrives and stops smoothly.
- Moving the slider moves the train along the bridge and the active time updates.
- The hero is readable on mobile (text stacks above, illustration crops to keep the train visible) and reduced motion shows a static scene.