cinematic-scroll-storytelling
Skill này làm gì
Skill này hướng dẫn agent tạo một website kể chuyện, mở ra khi khách cuộn. Nó dành cho portfolio, studio và trang sản phẩm muốn một trải nghiệm điện ảnh theo từng phần.
Khi nào nên dùng
- ✓Khi một portfolio hoặc trang sản phẩm nên mở ra từng phần khi người xem cuộn.
- ✓Khi bạn muốn các thẻ dự án dính, xếp chồng và lùi lại khi bạn đi xuống.
- ✓Khi một trang cần màn chào hoặc hiệu ứng tiêu đề sống động để có khởi đầu chỉnh chu.
Liên kết skill
https://github.com/MengTo/Skills/blob/main/agent-skills/web-design/cinematic-scroll-storytelling/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Xây dựng trang portfolio cuộn với các thẻ dự án dính, tiêu đề có hoạt ảnh và màn chào ngắn.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent dùng một thư viện cuộn mượt và hoạt ảnh kích hoạt theo cuộn để hiện từng phần. Nó thêm các chồng thẻ dính, tiêu đề tách từ và nền parallax, với thời gian được chỉnh để mượt.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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();
Câu hỏi thường gặp
Chồng thẻ dính trông thế nào?
Các thẻ đứng yên khi bạn cuộn, trong khi thẻ kế tiếp trượt đè lên và các thẻ trước lùi lại.
Nó chỉ dành cho portfolio sao?
Không. Skill cũng bao gồm trang sản phẩm và trang đích kể chuyện qua các phần.
Có cần GSAP không?
Skill dùng GSAP, ScrollTrigger và Lenis cho các hiệu ứng của nó.
Chi tiết
Mô tả gốc của tác giả
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
Độ phổ biến
- Sao GitHub
- 7.2k
- Vị trí xếp hạng
- #13411
- Giấy phép
- MIT
- Cập nhật
- 1/11/2026
Bình luận
- …
Thêm skill từ kho mã này
3d-cloth-material
7.2kGiúp agent của bạn tạo vải dệt 3D trông thật trong Three.js, với sợi dệt, ánh bóng nhẹ, nếp gấp tự nhiên, viền gấu và đường may.
3d-falling-leaves
7.2kGiúp agent của bạn thêm lá rơi chân thực vào cảnh 3D, với lá xoay tròn, trôi theo gió và được tái sử dụng khi máy quay di chuyển.
3d-four-seasons
7.2kGiúp agent của bạn thêm diện mạo xuân, hạ, thu, đông vào cảnh 3D, thay đổi cây cối, ánh sáng, bầu trời và tuyết mà không cần dựng lại cảnh.
3d-high-poly-models
7.2kGiúp agent của bạn dựng mô hình 3D chi tiết với hình dạng mượt và cạnh trông thật, rồi tạo các phiên bản nhẹ hơn chạy tốt trên web.
Skill tương tự
angular-developer
280kGiúp agent của bạn viết code Angular và tư vấn cấu trúc dự án, hữu ích khi bắt đầu dự án mới hoặc cải thiện hiệu suất.
frontend-a11y
280kGiúp agent của bạn làm cho giao diện web dễ tiếp cận với mọi người. Đảm bảo website và ứng dụng hoạt động tốt với trình đọc màn hình và điều hướng bằng bàn phím.
frontend-patterns
280kGiúp agent của bạn áp dụng các mẫu hiện đại trong phát triển frontend. Tối ưu hiệu năng, quản lý trạng thái và tuân theo thực hành tốt nhất với React và Next.js.