feat(motion): scroll-reveal and cinematic entrance animations

- motion.css / motion.js: reveal-on-scroll (IntersectionObserver), hero word-by-word
  entrance, drifting warm orbs, sheen on primary CTA, section underline sweep,
  scroll progress bar, count-up numbers
- content never hidden unless <html>.fx-motion: JS off or reduced-motion shows everything
- hover lift moved to the translate property so reveal keyframes cannot override it
- re-call initReveal after grid re-render and admin re-mount; SW precache + VERSION bump
- docs: DESIGN.md §9 motion contract, AGENTS.md pitfalls
This commit is contained in:
Bkk1234 committed 2026-11-19 01:10:27 +07:00
1 parent c00bc62272
commit 2950295690
10 files changed
+503 -12

No files matched your search

+3 -1
View File
@@ -2,7 +2,7 @@
กติกา: bump VERSION เฉพาะเมื่อแก้ไฟล์นี้หรือรายการ PRECACHE
เนื้อหา (HTML/CSS/JS/JSON) ใช้ network-first จึงไม่ต้อง bump */
const VERSION = "2026.11.19.1";
const VERSION = "2026.11.19.2";
const CACHE = `hobbypj-${VERSION}`;
const PRECACHE = [
@@ -12,11 +12,13 @@ const PRECACHE = [
"./assets/css/theme.css",
"./assets/css/home.css",
"./assets/css/admin.css",
"./assets/css/motion.css",
"./ui/app.js",
"./ui/router.js",
"./ui/ui.js",
"./ui/data.js",
"./ui/pwa.js",
"./ui/motion.js",
"./ui/views/home.js",
"./ui/views/admin.js",
"./data/projects.json",