本文へスキップ

TOP / MOTION LAB / スクロール

スクロール 読了目安 3分

フロー

概要

採用フローなどのステップを、進捗サークルと画像マスク出現で見せる縦フローと、スクロールで重なっていくスタッキングカードを組み合わせた、ストーリー性のあるスクロール演出。

使用技術

実装ポイント

コアスニペット

// 進捗サークルを stroke-dashoffset で描画(scrubでスクロール連動)
gsap.to(circle, {
  strokeDashoffset: 0,
  ease: "none",
  scrollTrigger: {
    trigger: ".flow-contents",
    start: "top center",
    end: "bottom center",
    scrub: 0.5,
  },
});

// clip-path ワイプ + 画像ズームアウト + テキスト stagger をタイムラインで連結
tl.to(mask, {
    clipPath: "polygon(0 0, 100% 0, 100% 100%, 0 100%)",
    duration: 1,
    ease: "power4.out",
  })
  .to(img, { scale: 1, duration: 1.5, ease: "power2.out" }, "<")
  .from(texts, { y: 30, opacity: 0, stagger: 0.1, ease: "power3.out" }, "-=0.5");