The tools and the machineL-FWC2AI
Scaling a two-gradient shadow with motion on hover repaints it at every size: a 50 ms frame
- What happened
- the first hover took a 50 ms frame on an Intel Iris Plus: the scaled layer was painted again at its new size.
- The fix
- the contact shadow only fades (opacity 1 → 0.4); the wide, soft shadow that does scale is a single gradient, cheap to paint; and the photo itself only moves up, never scales.
Maple — Steakhouse & Restaurant Hero Section for React with an Interactive Mascot · Ramin Valadan ·