Communitygithub.com

시네마틱 3D 스크롤

기존 웹사이트에 시네마틱 효과 하나를 빠르게 추가할 수 있는 기술 모음입니다. 느린 배경 비디오 히어로, 스크롤 기반 모션, 고정 스크롤 스토리, 패럴랙스, 3D 오브젝트 애니메이션을 지원합니다.

시네마틱 3D 스크롤란 무엇인가요?

이 스킬은 이미 존재하는 웹사이트에 단 하나의 시네마틱 스크롤 기법을 추가하기 위해 설계된 전문 도구입니다. 사용자가 스크롤 애니메이션, 고정(sticky) 또는 핀(pin)된 섹션, 패럴랙스, 3D 오브젝트, 스크롤로 제어되는 비디오를 요청할 때 사용합니다. 배경 비디오 히어로, 스크롤 기반 모션, GSAP ScrollTrigger로 구현하는 핀 스크롤 스토리, 패럴랙스 깊이, Three.js 또는 React Three Fiber로 제작하는 3D 객체 등 다섯 가지 기법을 제공하며, 페이지당 최대 세 가지 기법(배경 비디오 포함)까지만 사용하도록 제한하여 과도한 효과로 인한 사용자 피로를 방지합니다. 이 스킬은 접근성 가드레일을 강조하여 `prefers-reduced-motion` 설정에서 모든 애니메이션을 비활성화하고, 터치 기기에서의 정상 작동을 확인하며, 768px 미만 화면에서 3D를 정적 이미지로 대체합니다. 또한 효과 코드를 뷰포트 근처에서 지연 로딩하고, WebGL 실패 시 대체 이미지를 제공하며, GSAP, Three.js, React Three Fiber, Lenis 라이브러리의 현재 호환 버전을 확인하도록 요구합니다. 전체 기술 비용을 측정하여 전송 크기 변화를 보고하고, 무거운 요소는 경량화하거나 제거하도록 권장합니다.

지원 대상~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/mukulmunda41-create/futuristic-web-design-skills/tree/HEAD/skills/cinematic-3d-scroll

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

Cinematic scroll and 3D

A short routine for adding one cinematic technique to a site that already exists. It is the cinematic step of the futuristic-web-design skill, packaged so it can run alone.

If ../futuristic-web-design/ sits next to this skill, read references/cinematic-moves.md there before writing scroll or 3D code. It has the code for each recipe below, the re-encoding command, and the process for a full live-3D scroll story.

The budget

There are five techniques: a background video hero, scroll-tied motion, a pinned section, parallax depth, and a live 3D object. Use the background video hero and no more than two of the other four. A page that uses all of them reads as a demo reel, tires the visitor, and weakens each effect.

Before writing code, walk the page and ask of each placement: would motion here make something clearer, or make the visitor feel something specific? State what you will add, where, what it contributes and what it costs. If the user asks for more once two are in, be plain about the trade: added weight, and less impact for the ones already there.

Guardrails for every technique

Decoration is never allowed to take the page down with it.

  • Reduced motion. Under prefers-reduced-motion: reduce there is no pinning, no scrubbing and no 3D download. Show a normal stacked layout or a still image. This covers smooth scrolling and transitions too, and script-driven motion needs its own matchMedia check because it does not obey CSS.
  • Touch. Verify with finger scrolling: no jumps, no horizontal overflow, no scroll traps.
  • Small screens. Below 768px, swap 3D for a still image.
  • Deferred loading. Fetch effect code as its section nears the viewport, never during the initial load.
  • Failure. If the effect errors or WebGL is missing, the still image stays and the rest of the page works.
  • Truthful figures. An animated counter must never rest on a false value. Animate the presentation, not the data.
  • Versions. Check current documentation for GSAP, Three.js, React Three Fiber and Lenis and their compatible versions. Ask before installing each package.

Recipes

Background video hero

  • A video element with autoplay, muted, loop, playsinline and a poster. Phones only autoplay video that is muted and inline.
  • The poster (hero-poster.webp) paints first, so there is no empty frame while hero.mp4 downloads.
  • For legibility, put a gradient scrim under the text block only. Dimming the whole clip defeats the point of having it. The headline should be readable within a couple of seconds.
  • Keep copy away from the clip's focal subject. Decide this separately for desktop and phone.
  • Under reduced motion, show the poster and skip autoplay.

Pinned scroll story

  • The section sticks when its top reaches the top of the viewport, steps through about three beats as scrolling continues, then releases. Scrolling up plays it backwards.
  • Each beat is an oversized numeral, a short heading and one sentence of real copy.
  • Build it with GSAP ScrollTrigger (pin and scrub) inside gsap.matchMedia() so it exists only when motion is allowed and cleans up after itself.
  • Author the markup as plain stacked beats. With no script running, that markup is already the fallback.
  • Pinning is the technique most likely to misbehave on phones. Ask for a test by thumb on a real device, and say so if none was done.

One procedural 3D accent

  • A single small object, placed once, next to the section's content. Build the geometry in code from primitives, working from a verbal description of the form. No downloaded model files unless the user asks.
  • A slow idle rotation plus a slight tilt driven by scroll. Materials and lighting come from the design system, lit like a studio product shot.
  • The container starts with a still picture of the object. The canvas replaces it only after the 3D code has loaded and mounted.
  • Load only at 768px and wider, when motion is allowed, and when the section is near the viewport. Pause rendering while off screen and cap device pixel ratio at 2.

Scroll-driven video

  • A short clip whose playhead follows scroll position in both directions. It gives a "product comes apart" effect for far fewer bytes than live 3D.
  • Re-encode first so every frame is a keyframe, with audio removed and the clip trimmed to the seconds that move. Target roughly 1 MB or less.
  • Pin the section and map scroll progress to video.currentTime. Mark the element muted and playsinline, and never call play() on it.
  • Reveal text callouts in sequence from the same progress value. Release the pin promptly.
  • Under reduced motion, show the most informative still frame.

Measure what it cost

After adding a technique, compare transfer size before and after and report a short table with the files touched and packages added. If something is heavy, slim it. If it stays heavy, take it out.

Individual skills in this repo

This repo contains 3 individual skills — each has its own dedicated page.

mukulmunda41-create/futuristic-web-design

Build cinematic, futuristic-feeling marketing websites and landing pages end to end without the generic AI look - brief, design system, section-by-section build, AI image and video prompts for the site's visuals, scroll storytelling, a 3D accent or scroll-driven video, mobile polish, a contact form wired to a real database, deploy, domain and launch checks. Use this whenever the user wants a website, landing page, homepage, portfolio or business site built or redesigned, asks for a hero section or any page section, says cinematic, premium, futuristic, 3D, scroll animation, parallax, pinned section or Awwwards-style, wants prompts for hero images or hero video, or complains that a site looks generic or AI-made - even if all they say is "make a website for my cafe".

mukulmunda41-create/new-section

Fast path for adding, restyling or rebuilding one section of an existing website (navigation, hero, trust strip, products, story, testimonials, FAQ, contact, footer) or for comparing layout options side by side. Use when the site and its design rules already exist and the user wants a single section built, changed or shown in a few variants, including a contact form that saves to a database. For a whole new site, a redesign, or a site that looks generic, use futuristic-web-design instead.

mukulmunda41-create/web-assets-and-launch

Fast path for preparing a website's media and getting it live - compressing images and video for the web, writing matching image and video prompts for a generator such as Google Flow, the phone, polish, speed and security passes, search and sharing metadata, and deploying to Vercel. Use when the user asks to optimise or generate images or video, audit or polish an existing site, check for leaked keys, set up SEO or link previews, or launch. For a whole new site use futuristic-web-design instead.

관련 스킬