본문으로 건너뛰기
Skillpedia
모션 및 애니메이션7.2k · #13463

scroll-scrubbed-visual-sequence

하는 일

이 스킬은 제품 조립이나 물체 회전 같은 시각적 변화를 페이지 스크롤 위치와 연결합니다. 안정적인 대체 방식을 갖춘 스크롤 기반 스토리를 원하는 디자이너와 개발자를 위한 것입니다.

사용하는 경우

  • ✓독자가 페이지를 내려갈 때 제품이 조립되거나 회전하게 하고 싶을 때.
  • ✓방문자가 얼마나 스크롤했는지에 따라 히어로 화면의 상태가 바뀌어야 할 때.
  • ✓기본 스크롤만으로 앞뒤로 움직이는 다이어그램이나 사진 시퀀스가 필요할 때.

스킬 링크

https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/scroll-scrubbed-visual-sequence/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/scroll-scrubbed-visual-sequence/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“페이지의 제품 영상이 사람들이 아래로 스크롤하면 앞으로 재생되고, 위로 스크롤하면 뒤로 재생되게 해 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 스크롤 위치로부터 하나의 진행 값을 정하고, 이 값으로 선택한 렌더러(동영상, 이미지, 캔버스, SVG 중 하나)를 움직입니다. 정확한 프레임은 스크롤이 정하므로, 타이머나 휠 움직임이 상태를 결정하지 않습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Scroll-Scrubbed Visual Sequence

Turn one visual transformation into a responsive scroll instrument. Keep the page usable without motion and keep the renderer replaceable.

Define the sequence

Write the visual states before coding:

const sequence = {
  scrollVh: 280,
  frameCount: 96,
  fit: "contain",
  posterFrame: 0,
  reducedMotionFrame: 95,
  copyStops: [0, 0.42, 0.78]
};

Use one normalized value for every renderer:

const progress = Math.min(1, Math.max(0,
  (viewportTop - sectionTop) / (sectionHeight - viewportHeight)
));

Never make wheel delta, elapsed time, or autoplay the source of truth. Native scroll position must determine the exact visual state in both directions.

Choose the renderer

  • Use video when the sequence is continuous, photographic, or expensive to render live. Encode frequent keyframes, preload metadata, reserve the aspect ratio, and coalesce currentTime writes in requestAnimationFrame.
  • Use an image sequence when exact art-directed frames matter. Preload the current frame first, then nearby frames; never block first paint on the whole set.
  • Use canvas for procedural drawing or compositing. Cap device pixel ratio at 2 and redraw only when progress changes.
  • Use SVG or DOM for diagrams, product cards, interface states, and accessible text. Drive transforms, opacity, clip paths, and CSS variables instead of layout-heavy properties.
  • Use WebGL only when depth, lighting, or a real 3D camera materially strengthens the idea. Provide a static poster and dispose resources.

Build the scroll stage

  1. Keep the section in normal document flow and set its height from scrollVh.
  2. Put the visual in a position: sticky stage sized to the viewport.
  3. Keep copy and controls in a separate layer. Do not bake essential text into frames.
  4. Map progress to the renderer with no implicit easing. Add optional smoothing after correctness is proven.
  5. Refresh measurements after fonts and intrinsic media sizes settle.
  6. Release the sticky stage cleanly before the next section and keep the footer reachable.

Use GSAP ScrollTrigger when the project already uses GSAP or needs exact pin, refresh, and timeline coordination:

ScrollTrigger.create({
  trigger: section,
  start: "top top",
  end: () => `+=${innerHeight * 2.8}`,
  pin: stage,
  scrub: true,
  invalidateOnRefresh: true,
  onUpdate: ({ progress }) => render(progress)
});

For a dependency-free implementation, measure the section on scroll and resize, then schedule one render per animation frame.

Handle media safely

  • Keep a poster visible until the first real frame paints.
  • Clamp frame indexes to 0...frameCount - 1.
  • Cancel stale image requests and never queue every seek during fast scrolling.
  • Use object-fit and an explicit focal point so the subject survives mobile crops.
  • Pause decoding, rendering, and observation while the section is offscreen or the document is hidden.
  • Clean up ScrollTriggers, observers, listeners, animation frames, Blob URLs, and renderer resources on route change or unmount.

Preserve access and control

  • Keep headings, copy, captions, and the CTA in semantic HTML.
  • Do not trap scrolling, block keyboard navigation, or require precise pointer input.
  • Under prefers-reduced-motion: reduce, remove pinning and scrubbing, render the selected static frame, and restore ordinary document flow.
  • If the sequence communicates ordered information, expose the same states as text or a list.

Tune deliberately

Expose scroll distance, renderer, frame count, poster frame, media fit, focal point, copy stops, overlay strength, smoothing, and reduced-motion state as configuration. Avoid magic numbers distributed across event handlers.

Verify

Check forward and reverse scrolling, fast flicks, resize while active, 390/768/1024/1440 widths, unloaded frames, blocked video, reduced motion, keyboard order, route cleanup, and console errors. The same scroll position must always reproduce the same state.

Use demo/index.html as the working reference and demo/PROMPT.md to recreate or remix it. Keep REFERENCES.md as the links-only implementation source list.

자주 묻는 질문

어떤 렌더러를 골라야 하나요?

스킬은 매끄러운 사진 시퀀스에는 동영상, 정확한 프레임에는 이미지, 그리기에는 캔버스, 다이어그램과 텍스트에는 SVG나 DOM을 권장합니다.

스크롤을 가로채나요?

아니요. 기본 페이지 스크롤을 사용하므로, 움직임이 없어도 페이지를 계속 쓸 수 있습니다.

모든 프레임을 한 번에 불러오나요?

아니요. 이미지 시퀀스는 현재 프레임을 먼저 불러오고, 그다음 주변 프레임을 불러옵니다.

상세 정보

작성자의 원본 설명

Build reversible scroll-controlled visual transformations with a pinned or sticky stage, normalized progress, and video, image-sequence, canvas, SVG, or DOM renderers. Use for hero transformations, product assembly, interface state walkthroughs, object rotation, diagrams, or photo sequences that must move forward and backward with native scrolling.

repo: MengTo/Skills

인기도

GitHub 스타
7.2k
순위
#13463
라이선스
MIT
업데이트
2026. 11. 1.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬