Communitygithub.com

MengTo/Skills

Lenisのスムーススクロール、GSAP ScrollTrigger、スクロール連動プログレッション、スタッガードテキスト、スティッキーカードスタック、パララックス背景、フッターリビール、没入型プリローダーを使用した、映画のようなスクロール駆動のランディングページを作成します。プレミアムなエディトリアル体験、スティッキーなプロジェクトスタック、キネティックタイポグラフィ、セクションごとのストーリーテリングを分析・構築する際に使用します。

Skills とは?

このスキルは、GSAP、ScrollTrigger、Lenisをコアスタックとして使用し、映画のようなスクロール駆動のストーリーテリングランディングページを作成するためのものです。主に、プレミアムエディトリアルサイト、ハイエンドなクリエイティブスタジオのポートフォリオ、Appleレベルのモーション精度が求められるプロジェクトに使用します。 プリローダーからヒーロー、セクションリビール、スティッキーカードスタック、パララックス、フッターに至るまで、ページアナトミー全体をカバーします。スキルには、スプリットテキストリビール、スクロールトリガーによるリビール、スクロール連動プログレッション、スティッキーカードスタック、パララックス効果の具体的な実装コード(JavaScriptとCSS)が含まれています。 また、モーション低減設定への対応、モバイルでのパフォーマンス考慮、ビルド手順、QAチェックリストも網羅しており、プロダクション品質の実装を保証します。 対応プラットフォームは、GSAP、ScrollTrigger、LenisをサポートするあらゆるWebプロジェクトです。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/MengTo/Skills/tree/HEAD/agent-skills/web-design/cinematic-scroll-storytelling

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

プレビュー

スキル README より

Skills preview

ドキュメント

シネマティック スクロール ストーリーテリング

使用するタイミング

  • ページを、ユーザーがスクロールするにつれて展開するプレミアムなエディトリアルストーリーのように感じさせたい場合。
  • ユーザーが、スクロール駆動のストーリーテリング、スクロール連動アニメーション、スティッキーカードスタック、パララックス、スプリットテキスト、プリローダー、または映画的なプログレッションについて言及した場合。
  • ポートフォリオ、スタジオ、製品、またはランディングページに、レイヤー状の奥行き感を伴うセクションごとのリビールが必要な場合。
  • 実装にGSAP、ScrollTrigger、Lenisを使用できる場合。

エフェクト用語集

  • スクロール駆動のストーリーテリング: スクロールに合わせてセクションが順次表示されます。
  • スクロール連動アニメーション: scrubを使用して、プログレスがスクロールに直接結びついています。
  • スクロールトリガーモーション: セクションがビューポートに入ったときにアニメーションが開始されます。
  • スタッガードリビール: 単語、行、カード、または要素が少しずつ遅れて表示されます。
  • プログレッシブリビール: スクロールの進行に応じて、不透明度、スケール、ブラー、クリップ、または位置が変化します。
  • スティッキーカードスタック: スティッキーカードが重なり、スケールし、次のカードが来ると後退します。
  • パララックススクロール: 背景と前景のレイヤーが異なる速度で移動します。
  • スクロールスクラビング: scrub: true または scrub: 1 によってアニメーションがスクロールバーに追従します。
  • キネティックタイポグラフィ: マスクされたスプリットテキストの動き。通常は単語ごとまたは行ごとに行われます。
  • プリローダー: 開始時のローディング画面、プログレスバー、およびイントロトランジション。

目指す雰囲気

  • ラグジュアリーなエディトリアルウェブサイト。
  • ハイエンドなクリエイティブスタジオのポートフォリオ。
  • Appleレベルのモーションの緻密さ。
  • モダンなAwwwardsのインタラクション言語。
  • 没入感のある映画的なランディングページ。

避けるべき点:

  • バウンス、弾性、またはスプリングのような動き。
  • 激しいスケールのジャンプ。
  • 派手なゲームスタイルのエフェクト。
  • 同時に発生するスクロールエフェクトが多すぎること。
  • ページが読みにくくなるようなスクロールハイジャック。

コアスタック

npm i gsap lenis
import Lenis from "lenis";
import "lenis/dist/lenis.css";
import { gsap } from "gsap";
import { ScrollTrigger } from "gsap/ScrollTrigger";

gsap.registerPlugin(ScrollTrigger);

const reduceMotion = window.matchMedia("(prefers-reduced-motion: reduce)").matches;

if (!reduceMotion) {
  const lenis = new Lenis({
    lerp: 0.08,
    smoothWheel: true,
    wheelMultiplier: 0.9,
  });

  lenis.on("scroll", ScrollTrigger.update);

  gsap.ticker.add((time) => {
    lenis.raf(time * 1000);
  });

  gsap.ticker.lagSmoothing(0);
}

window.addEventListener("load", () => ScrollTrigger.refresh());

モーショントークン

  • エンターイージング: power3.out または power4.out。
  • スクラブシーン: scrub: 0.8 から 1.4 で ease: "none"。
  • テキストリビール時間: 0.8s から 1.1s。
  • カードリビール時間: 0.9s から 1.2s。
  • 単語スタガー: 0.035s から 0.07s。
  • 行スタガー: 0.08s から 0.14s。
  • カードスタガー: 0.06s から 0.1s。
  • リビールオフセット: y: 24 から 48。
  • ブラー: 4px から 10px、その後 0px。
  • スティッキーカードスケール深度: 1 から 0.92。

ページアナトミー

  1. プリローダー: 黒い画面、プログレスバー、ブランド/タイトル、イントロフェード。
  2. ヒーロー: 画像パララックス、マスクされたヘッドラインリビール、微妙なスクロールキュー。
  3. イントロ: 単語ごとのキネティックタイポグラフィ。
  4. ストーリーセクション: スクロールトリガーによるフェードアップ、ブラーイン、クリップリビール。
  5. 最近のプロジェクト: スケールとレイヤー深度を持つスティッキーカードスタック。
  6. ギャラリーまたは証拠: スクロールスクラブによる水平またはプログレッシブリビール。
  7. フッター: パララックスリビールまたはゆっくりとした上方への受け渡し。

マークアップパターン

<div class="preloader" data-preloader>
  <div class="preloader__bar" data-preloader-bar></div>
</div>

<main>
  <section class="hero" data-parallax-section>
    <img data-parallax-layer data-speed="-0.18" src="/hero.jpg" alt="">
    <h1 data-split-reveal>Design that unfolds with cinematic restraint.</h1>
  </section>

  <section data-story-section>
    <p data-split-reveal="words">Every block arrives with quiet intent.</p>
  </section>

  <section class="project-stack" data-sticky-stack>
    <article data-stack-card>Project One</article>
    <article data-stack-card>Project Two</article>
    <article data-stack-card>Project Three</article>
  </section>

  <footer data-footer-parallax>...</footer>
</main>

プリローダーシーケンス

プリローダーを使用して映画的なトーンを設定し、その後ヒーローリビールに引き継ぎます。

function initPreloader() {
  const loader = document.querySelector("[data-preloader]");
  const bar = document.querySelector("[data-preloader-bar]");
  if (!loader) return Promise.resolve();

  if (reduceMotion) {
    loader.remove();
    return Promise.resolve();
  }

  return new Promise((resolve) => {
    const tl = gsap.timeline({
      defaults: { ease: "power3.out" },
      onComplete: () => {
        loader.remove();
        resolve();
      },
    });

    tl.fromTo(bar, { scaleX: 0, transformOrigin: "left" }, { scaleX: 1, duration: 1.1 })
      .to(loader, { yPercent: -100, duration: 0.9, ease: "power4.inOut" }, "+=0.15");
  });
}

スプリットテキストリビール

マスクされたオーバーフローコンテナを使用します。リンクや意味のあるインラインマークアップを含むテキストは分割しないでください。

function splitWords(element) {
  if (element.dataset.splitReady === "true") return;

  const text = element.textContent || "";
  const parts = text.split(/(\s+)/);
  element.textContent = "";
  element.setAttribute("aria-label", text.trim());

  parts.forEach((part) => {
    if (!part.trim()) {
      element.appendChild(document.createTextNode(part));
      return;
    }

    const mask = document.createElement("span");
    const word = document.createElement("span");
    mask.className = "split-word-mask";
    word.className = "split-word";
    word.textContent = part;
    mask.setAttribute("aria-hidden", "true");
    mask.appendChild(word);
    element.appendChild(mask);
  });

  element.dataset.splitReady = "true";
}

function initSplitReveals() {
  if (reduceMotion) {
    gsap.set("[data-split-reveal]", { autoAlpha: 1 });
    return;
  }

  gsap.utils.toArray("[data-split-reveal]").forEach((element) => {
    splitWords(element);
    const words = element.querySelectorAll(".split-word");

    gsap.fromTo(
      words,
      { yPercent: 110, autoAlpha: 0, filter: "blur(8px)" },
      {
        yPercent: 0,
        autoAlpha: 1,
        filter: "blur(0px)",
        duration: 0.95,
        ease: "power4.out",
        stagger: 0.05,
        scrollTrigger: {
          trigger: element,
          start: "top 82%",
          once: true,
        },
      }
    );
  });
}
.split-word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.split-word {
  display: inline-block;
  will-change: transform, opacity, filter;
}

スクロールトリガーによるリビール

通常のセクションに使用します。これらは一度だけ再生され、まとまりのある印象を与え、ぎくしゃくしないようにします。

function initSectionReveals() {
  if (reduceMotion) {
    gsap.set("[data-story-section], [data-reveal-item]", { autoAlpha: 1, clearProps: "all" });
    return;
  }

  gsap.utils.toArray("[data-story-section]").forEach((section) => {
    const items = section.querySelectorAll("[data-reveal-item]");
    const targets = items.length ? items : section.children;

    gsap.fromTo(
      targets,
      { y: 36, autoAlpha: 0, filter: "blur(8px)" },
      {
        y: 0,
        autoAlpha: 1,
        filter: "blur(0px)",
        duration: 1,
        ease: "power4.out",
        stagger: 0.08,
        scrollTrigger: {
          trigger: section,
          start: "top 82%",
          once: true,
        },
      }
    );
  });
}

スクロール連動プログレッション

映画的なプログレッションにはスクラブタイムラインを使用します。スクラブされたアニメーションは線形に保ち、スクロール位置にタイミングを任せます。

function initProgressionScenes() {
  if (reduceMotion) return;

  gsap.utils.toArray("[data-progress-scene]").forEach((scene) => {
    const media = scene.querySelector("[data-progress-media]");
    const copy = scene.querySelectorAll("[data-progress-copy]");

    gsap.timeline({
      scrollTrigger: {
        trigger: scene,
        start: "top top",
        end: "+=140%",
        scrub: 1.1,
        pin: true,
        anticipatePin: 1,
      },
    })
      .fromTo(media, { scale: 1.08 }, { scale: 1, ease: "none" })
      .fromTo(copy, { autoAlpha: 0, y: 40 }, { autoAlpha: 1, y: 0, stagger: 0.15, ease: "none" }, 0.15);
  });
}

スティッキーカードスタック

レイアウトには position: sticky を、レイヤー化されたスケール/深度にはScrollTriggerを使用します。以前のカードは、後のカードが到着するにつれて後退する必要があります。

[data-sticky-stack] {
  position: relative;
}

[data-stack-card] {
  position: sticky;
  top: 12vh;
  transform-origin: center top;
  will-change: transform, opacity;
}
function initStickyCardStack() {
  if (reduceMotion) return;

  gsap.utils.toArray("[data-sticky-stack]").forEach((stack) => {
    const cards = gsap.utils.toArray(stack.querySelectorAll("[data-stack-card]"));

    cards.forEach((card, index) => {
      const nextCard = cards[index + 1];
      if (!nextCard) return;

      gsap.to(card, {
        scale: 0.92 + index * 0.015,
        autoAlpha: 0.72,
        y: -24,
        ease: "none",
        scrollTrigger: {
          trigger: nextCard,
          start: "top 78%",
          end: "top 24%",
          scrub: true,
          invalidateOnRefresh: true,
        },
      });
    });
  });
}

パララックス

パララックスは、ヒーロー画像、背景レイヤー、フッターリビールに使用します。移動距離は小さく保ちます。

function initParallax() {
  if (reduceMotion) return;

  gsap.utils.toArray("[data-parallax-layer]").forEach((layer) => {
    const speed = Number(layer.dataset.speed || -0.16);
    const section = layer.closest("[data-parallax-section]") || layer;

    gsap.to(layer, {
      y: () => window.innerHeight * speed,
      ease: "none",
      scrollTrigger: {
        trigger: section,
        start: "top bottom",
        end: "bottom top",
        scrub: 1,
        invalidateOnRefresh: true,
      },
    });
  });
}

フッターのパララックスリビール:

function initFooterReveal() {
  if (reduceMotion) return;

  const footer = document.querySelector("[data-footer-parallax]");
  if (!footer) return;

  gsap.fromTo(
    footer,
    { yPercent: -12, autoAlpha: 0.85 },
    {
      yPercent: 0,
      autoAlpha: 1,
      ease: "none",
      scrollTrigger: {
        trigger: footer,
        start: "top bottom",
        end: "top 45%",
        scrub: 1,
      },
    }
  );
}

ビルド順序

  1. 最初に静的なページを構築します。
  2. プリローダーとヒーローエントランスを追加します。
  3. スプリットテキストリビールを追加します。
  4. セクションごとのリビールを追加します。
  5. スティッキーカードスタックのプログレッションを追加します。
  6. パララックスレイヤーを追加します。
  7. ストーリーで必要となる場所にのみ、スクラブされたピン留めシーンを追加します。
  8. モーション低減とタッチ操作のフォールバックを追加します。
  9. デスクトップとモバイルでブラウザQAを実行します。

プロンプトテンプレート

Lenisのスムーススクロール、GSAP ScrollTriggerアニメーション、スタッガードテキストリビール、スティッキーカードスタックのプログレッション、パララックス背景、スクロールスクラブされたトランジション、セクションごとのストーリーテリング、没入型プリローダーアニメーションを備えた、映画のようなスクロール駆動のランディングページを作成します。プレミアムなエディトリアル体験のために、レイヤー化された奥行き、スケーリングトランジション、プログレッシブな不透明度の変化、スムーズなビューポートトリガーモーションを使用します。

QAチェックリスト

  • JavaScriptが無効でもコンテンツが読めること。
  • モーション低減ユーザーには静的なコンテンツが表示され、スムーススクロールレイヤーがないこと。
  • スクロールトリガーによるリビールは一度だけ再生されること。
  • スクロール連動シーンでは意図的に scrub が使用されていること。
  • スティッキーカードがフッターと重なったり、ページをトラップしたりしないこと。
  • パララックスの動きは控えめで、読みやすさを損なわないこと。
  • 画像の読み込みが遅くても、プリローダーが確実に終了すること。
  • 画像/フォント/レイアウトシフトの後に ScrollTrigger.refresh() が実行されること。
  • モバイルでは、ピン留めが簡略化されているか、パフォーマンスが低下する場合はピン留めがないこと。

Individual skills in this repo

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

MengTo/Skills

Create polished 60 fps 4:3 4K browser screen-recording style videos from Codex in-app browser captures, with browser-only crop, natural macOS cursor styling, deliberate click choreography, zoom-follow framing, ffprobe/thumbnail verification, and optional native recording compatibility checks. Use when the user asks to record or re-record browser actions, show cursor clicks and zooms, make Dribbble/UI inspiration or product demo recordings, or asks whether Codex, Playwright, or an MCP can produce a natural browser demo video.

MengTo/Skills

Generate ElevenLabs text-to-speech audio from scripts or inline text using local voice profiles. Use when the user asks for ElevenLabs, text-to-speech, TTS, narration, voiceover, speech audio, or voice generation; load voice names, voice ids, emails, owners, and account-specific defaults only from local config outside the skill.

MengTo/Skills

Profile, audit, and optimize frontend page performance with emphasis on animation work, memory-leak risks, long-session slowdowns, CSS animations, canvas/WebGL requestAnimationFrame loops, marquees, skeletons, GSAP/Three/Matter effects, timers, listeners, and observers. Use when the user asks to make animations performant, pause offscreen animations, look for memory leaks, profile pages that slow the computer over time, fix janky scrolling, reduce CPU/GPU use, or repeat the "only play in view" optimization on React/Vite/Next/frontend pages using Codex Browser.

MengTo/Skills

Turn a reference video into a super detailed recreation or inspiration prompt. Use when the user provides, mentions, uploads, links, or points to a video and asks to analyze the design, UI, animations, transitions, scroll interactions, typography, colors, assets, WebGL/Three.js, storytelling, section-by-section behavior, or to create a prompt/article that recreates the page, app, interaction, or motion system.

MengTo/Skills

Create an on-scroll animation trigger using IntersectionObserver with Tailwind-friendly animation classes and keyframes. Use when asked for scroll-reveal, animate-on-scroll, or sequencing element animations when they enter the viewport.

MengTo/Skills

Use when designing or implementing product-grade web motion like Stripe, Linear, Apple, and Vercel. Covers motion principles, easing/duration defaults, choreography patterns, scroll/hover interactions, performance, accessibility (reduced motion), and implementation guidance.

MengTo/Skills

Create premium cinematic web motion systems with GSAP, ScrollTrigger, and Lenis. Use for luxury editorial websites, creative studio portfolios, Awwwards-style interactions, smooth scroll reveals, staggered text, parallax, pinned sections, magnetic hover states, custom cursors, and mouse-reactive layered movement.

MengTo/Skills

Use when designing or rewriting a high-converting SaaS pricing page (structure, plan design, copywriting, SEO/AEO, FAQs, layout patterns, experiments). Includes checklists, templates, and common pitfalls.

MengTo/Skills

Use when creating or refining WebGL-heavy landing pages and you need to steer toward a specific visual outcome (premium, technical, playful, cinematic) while balancing conversion clarity, performance, and implementation complexity.

関連スキル