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

scroll-progress-timeline

하는 일

이 스킬은 순서가 있는 단계들을 잇는 진행 선을 만들고, 독자가 스크롤할 때 각 단계를 강조합니다. 온보딩 흐름, 로드맵, 사례 연구, 프로세스를 보여주려는 디자이너와 개발자를 위한 것입니다.

사용하는 경우

  • ✓온보딩이나 결제 흐름처럼 순서가 있는 과정을 스크롤에 따라 진행 상황으로 보여줘야 할 때.
  • ✓로드맵이나 연혁 페이지에서 독자가 내려갈수록 선이 채워져야 할 때.
  • ✓단계가 휴대폰에서나 움직임 없이도 분명하게 읽혀야 할 때.

스킬 링크

https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/scroll-progress-timeline/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-progress-timeline/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단계를 타임라인으로 보여 주세요. 사람들이 아래로 스크롤하면 선이 채워지게요.”

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

작동 방식

에이전트는 실제 순서 목록을 만들고, 기본 선과 그 위에 진행 선을 그립니다. 첫 단계와 마지막 단계를 기준으로 진행률을 계산하며, 진행 선이 닿으면 해당 단계를 강조합니다.

기술 내용 (원본 SKILL.md)

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

Scroll Progress Timeline

Use one progress line to connect ordered information. The sequence must remain complete, readable, and navigable before animation is added.

Model the steps

Keep the content data-driven:

const steps = [
  { id: "brief", number: "01", title: "Set the direction", body: "..." },
  { id: "build", number: "02", title: "Make the system", body: "..." },
  { id: "ship", number: "03", title: "Release and learn", body: "..." }
];

Render it as an ordered list with real headings. The line, dots, media, and active state enhance that structure; they do not replace it.

Build the line

  1. Render a quiet base line behind every point.
  2. Place one progress line on top with transform-origin: top for vertical or left for horizontal.
  3. Measure the first and last point centers, not arbitrary section edges.
  4. Normalize scroll position between those centers.
  5. Apply scaleY(progress) or scaleX(progress) so updates stay on the compositor.
  6. Mark a step active when the progress head crosses its center.
const progress = Math.min(1, Math.max(0,
  (viewportAnchor - lineStart) / (lineEnd - lineStart)
));
line.style.transform = `scaleY(${progress})`;

Schedule DOM writes in one animation frame. Recalculate geometry after font and image loading, resize, orientation changes, and content mutation.

Choose the layout

  • Use a centered alternating timeline only when both sides have enough width and similar content weight.
  • Use a left rail for long copy, compact steps, or mixed card heights.
  • Use a horizontal line for short sequences with concise labels and explicit keyboard-safe overflow.
  • Use pinned full-screen chapters only when each step carries a distinct visual state. Keep the pin finite and release before the next section.
  • Collapse to a simple left rail on small screens. Do not preserve alternation at the expense of reading order.

Animate step state

Use small opacity, translate, scale, blur, color, or media transitions. Keep every step readable while inactive. Expose active index with aria-current="step" only when that state is meaningful and current; do not announce every scroll update with a live region.

Use IntersectionObserver for simple active-state entry. Use a normalized scroll measurement or GSAP ScrollTrigger when the line must fill continuously or coordinate pinned media.

Handle navigation

  • Make step links real anchors when users can jump within the process.
  • Add scroll-margin for sticky headers.
  • Preserve focus and do not move it during passive scrolling.
  • Keep URLs and browser history stable unless the user explicitly selects a step.
  • If steps are interactive, use buttons or links with visible focus; never make a decorative dot the only control.

Reduce motion

Under prefers-reduced-motion: reduce, show the complete line or discrete reached states without scrubbed interpolation, blur, pinning, or large transforms. Keep ordinary document flow and all step content.

Verify

Test variable step counts, uneven card heights, missing media, long translations, 390/768/1024/1440 widths, 200% zoom, fast forward and reverse scrolling, direct anchor navigation, keyboard order, reduced motion, late font/image layout, route cleanup, and console errors. The active step and line head must agree at every boundary.

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.

자주 묻는 질문

애니메이션이 콘텐츠를 가리나요?

아니요. 스킬은 애니메이션을 더하기 전에 전체 순서가 완전하고 읽기 쉬워야 한다고 말합니다.

모바일에서도 작동하나요?

네. 스킬은 반응형 축소를 다루므로, 좁은 화면에서는 레이아웃이 바뀔 수 있습니다.

동작 줄이기 설정을 지원하나요?

네. 스킬에는 동작 줄이기 설정에 맞는 동작이 포함되어 있습니다.

상세 정보

작성자의 원본 설명

Turn any ordered process into a data-driven vertical or horizontal scroll story with a base line, progress fill, active step states, responsive collapse, semantic fallback, and reduced-motion behavior. Use for onboarding, checkout, roadmaps, recipes, case studies, service processes, histories, or narratives where progress through the sequence should become visible while scrolling.

repo: MengTo/Skills

인기도

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

이 스킬이 유용한가요?

0

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

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬