SCW Shared Core: Spacing & Reveal Engine
Testing responsive spacing tokens, scroll-driven reveal animations, count-up timers, floating primitives, and interactive buttons.
Reveal Modes (Scroll Up / Fade / Directional / Zoom / Clip)
Each card demonstrates an individual data-scw-reveal trigger with cubic-bezier easing.
1. Up (Default)
data-scw-reveal="up"
Slides up 32px and fades in smoothly using cubic-bezier(0.22, 1, 0.36, 1).
2. Fade
data-scw-reveal="fade"
Pure opacity transition with no positional displacement.
3. Left
data-scw-reveal="left"
Slides in from the left (-32px translateX) with fade.
4. Right
data-scw-reveal="right"
Slides in from the right (+32px translateX) with fade.
5. Zoom
data-scw-reveal="zoom"
Subtle scale down from 1.06 to 1.00 for punchy cards and images.
6. Clip Reveal
data-scw-reveal="clip"
Wipes horizontally using clip-path inset(0 100% 0 0) to full reveal.
Live CountUp Numbers (1.6s Ease-Out)
Scroll into view to trigger real-time number accumulation with format preservation.
Interaction Primitives (.scw-btn, .scw-card, .scw-float, .scw-parallax)
Test hover states, arrow nudging, idle floating graphic, and requestAnimationFrame parallax.
Hover & Focus States
Hover over this card to see the .scw-card -6px lift with deep layered shadow.