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:
1 parent
c00bc62272
commit
2950295690
10 files changed
+503
-12
No files matched your search
+2
-1
@@ -279,7 +279,8 @@
|
||||
.project-card:focus-within {
|
||||
border-color: var(--brand-300);
|
||||
box-shadow: var(--shadow-md);
|
||||
transform: translateY(-2px);
|
||||
/* ใช้ translate (คนละพร็อพเพอร์ตีกับ transform) เพื่อไม่ชนกับคีย์เฟรม reveal */
|
||||
translate: 0 -3px;
|
||||
}
|
||||
.project-card__top {
|
||||
display: flex;
|
||||
|
||||
Reference in new issue
Block a user