ui: add shared motion layer (page enter, scroll reveal, loading bar)

- ui/motion.js: Motion.enter/scan/loading, IntersectionObserver reveal with
  sweep fallback for jump-scroll, hidden tab and late-rendered cards
- _shared.css: --mu-ease token, .mu-loadbar, #view.mu-view-in, .mu-reveal
- router.js: start/stop loading bar, replay enter animation per view
- reduced-motion disables everything; maps are never transformed
- sw.js: precache motion.js, VERSION 2026.09.27.104
This commit is contained in:
Bkk1234 committed 2026-11-02 23:56:16 +07:00
1 parent ba5f4fd887
commit 5381e0690a
7 files changed
+351 -6

No files matched your search

+2 -1
View File
@@ -13,7 +13,7 @@
- ขั้นตอนอัปเดต: ดู AGENTS.md หัวข้อ PWA
============================================================ */
const VERSION = "2026.09.27.103"; // ← bump ทุกครั้งที่แก้ SW เอง
const VERSION = "2026.09.27.104"; // ← bump ทุกครั้งที่แก้ SW เอง
const CACHE = `at-transit-${VERSION}`;
const PRECACHE = [
@@ -33,6 +33,7 @@ const PRECACHE = [
"./popular.js",
"./visitors.js",
"./router.js",
"./motion.js",
"./partials/home.html",
"./partials/home.init.js",
"./partials/busStop.html",