本文へスキップ

TOP / MOTION LAB / スクロール

スクロール 読了目安 4分

プロセス

概要

セクションを画面にピン留めした状態でスクロールを進め、横方向のタイムライン上にステップカードが順番に立ち上がっていく、制作フロー・サービス手順の紹介向け演出。

使用技術

実装ポイント

コアスニペット

const tl = gsap.timeline({
  scrollTrigger: {
    trigger: ".process-section",
    start: "top top", end: "+=2000",
    pin: true, scrub: 1, anticipatePin: 1,
  },
});
items.forEach((item, index) => {
  const position = index * 0.18;
  tl.to(item.querySelector(".process__circle"), { scale: 1, duration: 0.15, ease: "back.out(1.7)" }, position);
  tl.to(item.querySelector(".process__connect-line"), { scaleY: 1, duration: 0.15 }, position + 0.05);
  tl.to(item.querySelector(".process__card"), { opacity: 1, y: 0, duration: 0.3, ease: "power2.out" }, position + 0.1);
});