跳到正文
Skillpedia
网站与界面(前端)7.2k · #13411

cinematic-scroll-storytelling

它能做什么

这个技能指导 AI 智能体打造一个随访客滚动而逐步展开的故事式网站。适合作品集、工作室和产品页面,希望分段呈现电影感体验的团队。

适用场景

  • ✓当作品集或产品页面需要随着人们滚动逐段展开时。
  • ✓当你希望带有粘性的项目卡片在向下滚动时堆叠并逐渐退后时。
  • ✓当网站需要加载动画或动态标题效果,以获得精致的开场时。

技能链接

https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/cinematic-scroll-storytelling/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/cinematic-scroll-storytelling/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请帮我做一个由滚动驱动的作品集页面,带粘性项目卡片、动态标题和一个简短的加载动画。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体使用平滑滚动库和滚动触发动画来呈现每一段。它会加入粘性卡片堆叠、逐字拆分的标题和视差背景,并把时间设置得流畅。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Cinematic Scroll Storytelling

Use When

  • A page should feel like a premium editorial story that unfolds as the user scrolls.
  • The user mentions scroll-driven storytelling, scroll-linked animation, sticky card stacks, parallax, split text, preloader, or cinematic progression.
  • A portfolio, studio, product, or landing page needs section-by-section reveals with layered depth.
  • The implementation can use GSAP, ScrollTrigger, and Lenis.

Effect Vocabulary

  • Scroll-driven storytelling: sections reveal as a sequence while scrolling.
  • Scroll-linked animation: progress is tied directly to scroll with scrub.
  • Scroll-triggered motion: animation starts when a section enters the viewport.
  • Staggered reveal: words, lines, cards, or elements enter with small delays.
  • Progressive reveal: opacity, scale, blur, clip, or position changes over scroll progress.
  • Sticky card stack: sticky cards layer, scale, and recede as the next card arrives.
  • Parallax scrolling: background and foreground layers move at different speeds.
  • Scroll scrubbing: animation follows the scrollbar through scrub: true or scrub: 1.
  • Kinetic typography: masked split-text movement, usually word-by-word or line-by-line.
  • Preloader: opening loading screen, progress bar, and intro transition.

Target Feel

  • Luxury editorial website.
  • High-end creative studio portfolio.
  • Apple-level motion polish.
  • Modern Awwwards interaction language.
  • Immersive cinematic landing page.

Avoid:

  • Bounce, elastic, or springy motion.
  • Aggressive scale jumps.
  • Flashy gaming-style effects.
  • Too many simultaneous scroll effects.
  • Scroll hijacking that makes the page hard to read.

Core Stack

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());

Motion Tokens

  • Enter ease: power3.out or power4.out.
  • Scrubbed scenes: ease: "none" with scrub: 0.8 to 1.4.
  • Text reveal duration: 0.8s to 1.1s.
  • Card reveal duration: 0.9s to 1.2s.
  • Word stagger: 0.035s to 0.07s.
  • Line stagger: 0.08s to 0.14s.
  • Card stagger: 0.06s to 0.1s.
  • Reveal offset: y: 24 to 48.
  • Blur: 4px to 10px, then 0px.
  • Sticky card scale depth: 1 down to 0.92.

Page Anatomy

  1. Preloader: black screen, progress bar, brand/title, intro fade.
  2. Hero: image parallax, masked headline reveal, subtle scroll cue.
  3. Intro: word-by-word kinetic typography.
  4. Story sections: scroll-triggered fade-up, blur-in, and clip reveals.
  5. Recent Projects: sticky card stack with scale and layered depth.
  6. Gallery or proof: scroll-scrubbed horizontal or progressive reveals.
  7. Footer: parallax reveal or slow upward handoff.

Markup Pattern

<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>

Preloader Sequence

Use a preloader to set the cinematic tone, then hand off into the hero reveal.

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();
       
常见问题

粘性卡片堆叠是什么样子?

卡片在滚动时保持固定,下一张卡片滑过它们,之前的卡片则逐渐退后。

它只适用于作品集吗?

不是。该技能也适用于以分段方式讲述故事的产品页面和落地页。

它需要 GSAP 吗?

该技能的效果使用 GSAP、ScrollTrigger 和 Lenis。

详情

作者的原始描述

Create cinematic scroll-driven landing pages with Lenis smooth scrolling, GSAP ScrollTrigger, scroll-linked progression, staggered text reveals, sticky card stacks, parallax backgrounds, scroll-scrubbed transitions, footer reveals, and immersive preloaders. Use when analyzing or building premium editorial scroll experiences, sticky project stacks, kinetic typography, or section-by-section storytelling.

repo: MengTo/Skills

热度

GitHub 星标
7.2k
排名
#13411
许可证
MIT
更新时间
2026/11/1

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能