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。它会读取这个技能并按说明操作。
可直接粘贴的消息
适用于 Claude Code、Codex 或 Cursor:在项目文件夹中运行,即可安装该技能。
下载 SKILL.md,放进智能体的技能文件夹。
可以这样问 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: trueorscrub: 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.outorpower4.out. - Scrubbed scenes:
ease: "none"withscrub: 0.8to1.4. - Text reveal duration:
0.8sto1.1s. - Card reveal duration:
0.9sto1.2s. - Word stagger:
0.035sto0.07s. - Line stagger:
0.08sto0.14s. - Card stagger:
0.06sto0.1s. - Reveal offset:
y: 24to48. - Blur:
4pxto10px, then0px. - Sticky card scale depth:
1down to0.92.
Page Anatomy
- Preloader: black screen, progress bar, brand/title, intro fade.
- Hero: image parallax, masked headline reveal, subtle scroll cue.
- Intro: word-by-word kinetic typography.
- Story sections: scroll-triggered fade-up, blur-in, and clip reveals.
- Recent Projects: sticky card stack with scale and layered depth.
- Gallery or proof: scroll-scrubbed horizontal or progressive reveals.
- 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
评论
- …
同一仓库的更多技能
3d-cloth-material
7.2k帮你的智能体在 Three.js 中制作逼真的编织织物,包括纱线编织纹理、柔和光泽、自然褶皱、下摆和缝线。
3d-falling-leaves
7.2k帮你的智能体在 3D 场景中添加逼真的飘落树叶,树叶会翻滚、随风飘动,并在镜头移动时循环利用。
3d-four-seasons
7.2k帮你的智能体为 3D 场景添加春夏秋冬四季效果,无需重建场景即可改变植被、光线、天空和积雪。
3d-high-poly-models
7.2k帮你的智能体构建形状平滑、边缘可信的精细 3D 模型,然后制作在网页上运行流畅的轻量版本。