Sand AISand AI MAGI-2MAGI-2가 이제 SandBase에서 제공됩니다: 네이티브 오디오가 포함된 1080p 동영상지금 사용해 보기

Scroll Flight Path: a Flier That Follows a Curved Path Down the Page

Build a scroll story where a cut-out flier (a bumblebee, a paper plane, a drone) flies down the page along a curved path as you scroll, swinging from side to side so it meets each chapter on the side away from its text; it turns to face the way it is heading, tilts into the curve, flaps between its poses, hovers when the scroll stops, draws the path it has flown and leans toward the pointer. SandBase draws the flier in two poses as one sprite sheet that the Skill cuts out and lines up, or you bring your own transparent PNGs. The hero is followed by a full landing page: chapter titles, an intro, a product console drawn in HTML, feature cards, specs, stats, a quote, a call to action and a footer, with a moving glow and a floating section pill.

예시 · 2

Wildflower seed site where a bumblebee flies down the page along a curved path
새 탭에서 열기

이 페이지에 접근할 수 없는 샌드박스 프레임에서 실행됩니다.

온라인에서 실행

SandBase sandbox에서 실행하고 결과를 Lab에서 확인하세요.

Lab에서 열기 ↗

얻을 수 있는 것

Bring the flier and its poses (or your own cut-outs), a first-screen headline and copy, two to six chapters, a button, links, palette and language. The Skill returns a full landing page (index.html), a section to paste into an existing site, the runtime script and stylesheet, the cut-out flier and the bundled open fonts.

작동 방식

  1. 01

    Plan the flier and chapters

    Scroll Flight Path's agent asks for the flier and its two poses or your PNGs, brand, first-screen headline and copy, two to six chapters each with a kicker, title, line and optional stat, links, button, palette and language. site.json's flight block sets swing, flapMs, size and bob. The agent also plans the landing page after the flight chapters.

  2. 02

    Draw the sprite sheet or reuse PNGs

    node scripts/sample.mjs wildpatch --site site.json --out preview builds free from a checked bumblebee sheet. generate.mjs --theme with --confirm-real requests one 2k gpt-image-2 sprite sheet on pure magenta, keys it out and lines the poses up on their centres of mass. build-web.mjs --frames takes 1 to 4 transparent PNGs facing right. Node.js 18+ and ffmpeg run it locally.

  3. 03

    Scroll the path and hand over

    The output holds index.html, section.html, flight-path.js returning inspect and destroy, fp- prefixed CSS, landing.js, fonts and a flier folder; --embed writes one bilingual file. Run node scripts/serve.mjs run/site, scroll down and back up, pause and move the pointer. inspect().chapter should report each anchor on alternating sides, with a dashed trail behind the flier.

FAQ

What does Scroll Flight Path make?

Scroll Flight Path makes a scroll story where a cut-out flier, such as a bumblebee, a paper plane or a drone, flies down the page on a curved path. It swings to meet each chapter on the side away from its text, faces its heading, tilts into the curve, flaps between poses, hovers when scrolling stops and draws a dashed trail.

Does Scroll Flight Path cost anything?

Scroll Flight Path is billed only for generate.mjs, which asks gpt-image-2 for one sprite sheet through the sandbase CLI or SANDBASE_API_KEY and charges it to your SandBase account. The agent quotes an estimate, --confirm-real is required to spend, and --budget-usd sets a cap; rates are at https://www.sandbase.ai/pricing. sample.mjs and your own PNGs are free.

Can Scroll Flight Path use my own flier pictures?

Yes. Scroll Flight Path's build-web.mjs takes a folder of 1 to 4 transparent PNGs with --frames, all facing right, and skips generation. A sheet passed with --sheet must use a flat key colour, pure magenta by default, with the poses side by side.

Can the Scroll Flight Path flier loop the loop?

No. Scroll Flight Path's path only goes down, so it has no loops. That lets the scroll position pick the point on the path directly while the flier stays at the middle of the screen. swing sets how far it crosses, from 0.2 to 0.7 of the page width.

Does Scroll Flight Path need WebGL or 3D models?

No. Scroll Flight Path is SVG and HTML, flight-path.js has no dependencies, and it is not meant for video or 3D models. With prefers-reduced-motion the flier does not flap, bob or lean.

How does Scroll Flight Path behave on phones?

Scroll Flight Path stacks the text above the flier's path on phones and narrows the swing. A 390 px phone viewport was checked in headless Chrome and fitted without sideways overflow, with no console errors.