cinematic-scroll-skill 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/COMPATIBILITY.md +244 -0
- package/LICENSE +21 -0
- package/MODELS.md +92 -0
- package/README.md +250 -0
- package/SKILL.md +1003 -0
- package/audit-mode.md +497 -0
- package/bin/install.mjs +91 -0
- package/compile-choreography.mjs +296 -0
- package/decision-log.md +241 -0
- package/examples/GETTING_STARTED.md +279 -0
- package/examples/KNOWN_ISSUES.md +50 -0
- package/examples/PROMPTS.md +166 -0
- package/examples/luxe/README.md +88 -0
- package/examples/luxe/index.html +662 -0
- package/examples/noir/README.md +72 -0
- package/examples/noir/index.html +634 -0
- package/examples/pop/README.md +81 -0
- package/examples/pop/index.html +711 -0
- package/examples/renaissance/README.md +39 -0
- package/examples/renaissance/index.html +648 -0
- package/examples/studio/README.md +77 -0
- package/examples/studio/chapters.js +105 -0
- package/examples/studio/index.html +520 -0
- package/manifest.json +92 -0
- package/manifest.md +136 -0
- package/package.json +56 -0
- package/references/film-archetypes.md +211 -0
- package/references/performance-budget.md +499 -0
- package/references/scroll-patterns.md +693 -0
- package/scroll-choreography-compilation.md +543 -0
- package/scroll-choreography.json +1512 -0
- package/taste-guardrails.md +164 -0
- package/templates/nextjs/.env.example +41 -0
- package/templates/nextjs/app/api/fal/proxy/route.ts +33 -0
- package/templates/nextjs/app/api/fal/webhook/route.ts +132 -0
- package/templates/nextjs/app/api/generate-edition-asset/route.ts +66 -0
- package/templates/nextjs/app/globals.css +80 -0
- package/templates/nextjs/app/layout.tsx +21 -0
- package/templates/nextjs/app/page.tsx +10 -0
- package/templates/nextjs/components/ChapterDemoVisual.tsx +212 -0
- package/templates/nextjs/components/ChapterScene.tsx +373 -0
- package/templates/nextjs/components/EditionsPage.tsx +116 -0
- package/templates/nextjs/components/SmoothScrollProvider.tsx +8 -0
- package/templates/nextjs/lib/api-guard.ts +110 -0
- package/templates/nextjs/lib/editions-manifest.ts +224 -0
- package/templates/nextjs/lib/fal-client.ts +12 -0
- package/templates/nextjs/lib/fal-generate.ts +86 -0
- package/templates/nextjs/lib/fal-models.ts +213 -0
- package/templates/nextjs/lib/prompt-contract.ts +97 -0
- package/templates/nextjs/lib/use-device.ts +42 -0
- package/templates/nextjs/lib/use-lenis.ts +35 -0
- package/templates/nextjs/next.config.ts +29 -0
- package/templates/nextjs/package-lock.json +6455 -0
- package/templates/nextjs/package.json +41 -0
- package/templates/nextjs/package.patch.json +28 -0
- package/templates/nextjs/postcss.config.js +6 -0
- package/templates/nextjs/scripts/generate-chapter-assets.mjs +243 -0
- package/templates/nextjs/scripts/setup.mjs +170 -0
- package/templates/nextjs/tailwind.config.ts +37 -0
- package/templates/nextjs/tsconfig.json +23 -0
- package/troubleshooting.md +1284 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# Renaissance — flagship example
|
|
2
|
+
|
|
3
|
+
**A complete cinematic-scroll page in one `index.html`.** No build, no framework, no keys — open the file (or visit GitHub Pages) and it runs. This is the **Mode A** baseline: the skill's full motion grammar implemented with the vanilla fallback (sticky pin + rAF parallax + IntersectionObserver scroll-spy + background morph).
|
|
4
|
+
|
|
5
|
+
It mirrors the production React/Next.js edition at **[w230.net/reinassence](https://www.w230.net/reinassence)** — *"Classic Touch — The Renaissance Edition"*, eight chapters on the firm that builds the taste layer for agentic AI.
|
|
6
|
+
|
|
7
|
+
## Run it
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
# from the repo root
|
|
11
|
+
python3 -m http.server 8099
|
|
12
|
+
# open http://localhost:8099/examples/renaissance/
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Or just double-click `index.html` (the only external request is Google Fonts).
|
|
16
|
+
|
|
17
|
+
## What it demonstrates
|
|
18
|
+
|
|
19
|
+
Every mandatory requirement from `SKILL.md`, proven in one file:
|
|
20
|
+
|
|
21
|
+
- **Multi-depth parallax** — atmosphere / hero image / title / foreground AI-card each move at distinct depths.
|
|
22
|
+
- **Unified-timeline motion** — content is composed when a chapter is centered, so the hero is fully visible at load (never the "starts invisible" failure mode).
|
|
23
|
+
- **Type reveal** — per-word stagger + letter-spacing settle on the italic display titles.
|
|
24
|
+
- **Background morph** — the fixed atmosphere crossfades between chapter color-worlds (gold ↔ oxblood) via scroll-spy.
|
|
25
|
+
- **3D tilt** — pointer-driven `rotateX/Y` on the gilded hero frames (non-touch only).
|
|
26
|
+
- **GSAP ScrollTrigger showcase beat** — a dedicated *"The Unveiling"* interlude (after the prologue) powered by GSAP ScrollTrigger, layering two techniques the vanilla engine doesn't:
|
|
27
|
+
- **God-shot / overhead pull-back** — the illuminated plate starts tight (`scale(1.5)` + `translateY(20%)`) and pulls back to full frame (`scale(1)` + `translateY(0)`) over the pin, scrubbed.
|
|
28
|
+
- **Scrubbed SVG flourish** — an illuminated-manuscript gold rule that *draws itself* via `stroke-dashoffset` as you scroll (path length read once via `getTotalLength()`).
|
|
29
|
+
GSAP is loaded from a deferred CDN and feature-detected: if it never loads (or under reduced-motion / mobile), the beat falls back to a complete, static composition.
|
|
30
|
+
- **Manifest-driven** — the whole page is generated from the `CHAPTERS` array at the bottom of the file. Edit that array to retheme; the DOM and motion follow.
|
|
31
|
+
- **Graceful degradation** — `prefers-reduced-motion` and mobile (`≤860px`) drop the pin entirely for a stacked, IntersectionObserver fade-up.
|
|
32
|
+
|
|
33
|
+
## Editing
|
|
34
|
+
|
|
35
|
+
Open `index.html`, scroll to the `CHAPTERS` array, and change titles, copy, accents (`gold` / `oxblood`), images, and the floating AI-card text. Drop new hero art into `./assets/`. That's the whole content model.
|
|
36
|
+
|
|
37
|
+
## Credits
|
|
38
|
+
|
|
39
|
+
Hero art is the real generated imagery from the w230 Renaissance edition (Renaissance oil-painting base + halftone pop-art artifacts — the "punk-futurism halftone" canon), optimized to web JPEGs. Reused here under the project's MIT license as an illustrative baseline.
|