REFERENCE
- Gallery page: https://magpui.com/en/i/photos-form-a-rotating-globe-889a58
- First frame (image): https://dnioievkvxejjbxgwvko.supabase.co/storage/v1/object/public/media/photos-form-a-rotating-globe-889a58/shot.jpg
- Clip (mp4): https://dnioievkvxejjbxgwvko.supabase.co/storage/v1/object/public/media/photos-form-a-rotating-globe-889a58/clip.mp4
- Original post: https://x.com/soluna_stensale/status/2120207360173941180 by @soluna_stensale
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: Rebuild a rotating spherical photo gallery, not the surrounding website. Individual rectangular lifestyle photos wrap around a hollow globe with visible white gaps.
DESIGN SYSTEM: Estimate a 440px globe on an off-white #FAF9F6 background with near-black #20221E text. Use around 36 photo tiles in latitude bands with 6–12px visible gaps and square edges. Responsive diameter is min(440px,80vw). Keep a short 18px neutral sans-serif heading and 12px paragraph above, with 48px breathing room. Photos are foreshortened at the sides and larger at the front. These dimensions are rebuild estimates.
MOTION: Rotate the whole gallery around its vertical axis continuously, one revolution per 36 seconds using linear cubic-bezier(0,0,1,1). Preserve natural depth occlusion. Pause when offscreen or in a hidden tab. If a pause control is used, ease speed to zero over 400ms with cubic-bezier(0.22,1,0.36,1). Do not add unsupported navigation or image overlays.
SECTIONS: Small introductory text, spherical gallery, optional quiet caption. States: smoothly rotating, paused, static fallback.
IMPLEMENTATION: Use Three.js and separate textured spherical patches with correct UVs so each photo follows the sphere curvature. Use perspective projection, depth testing, transparent canvas and unlit image materials. Reuse geometry and textures, cap pixel ratio at 1.5, and avoid expensive postprocessing. For prefers-reduced-motion render a still globe with an accessible keyboard-operable Play/Pause control and visible focus. Provide a readable static image list for screen readers and a non-WebGL fallback.
ADAPT TO THE PROJECT: Reuse existing design tokens, components and fonts. Map colors to the nearest existing tokens. Never copy logos, brand names, photos or illustrations from the original; use licensed placeholders.
SUCCESS CHECK:
- Photos remain recognizable at the front and curve naturally around the edges.
- Rotation is continuous without layout jumps or excessive texture requests.
- Reduced motion, keyboard pause and a WebGL fallback work.