Spring Tilt Card Field
A field of cards that tilt, lift, and catch a moving highlight, with the strength falling off by distance from the pointer.

A spring tilt field is several cards that lean toward the pointer, rise off the page, and pick up a soft highlight. The lean is strongest on the card under the pointer and almost nothing two cards away. Every angle and the lift are springs, so the field eases when the pointer enters and when it leaves. A raw mousemove tilt snaps. The spring is what makes a grid of cards feel like one material.
The 3D flip card turns over to show a back. The perspective card leans on hover of itself. This field leans as a neighborhood. The pointer is a light, not a switch on one card.
Gaussian falloff
Distance from the pointer to a card’s center becomes a weight:
const falloff = Math.exp(-(dist * dist) / (2 * 170 * 170));
const rotateX = (-dy / height) * 18 * falloff;
const rotateY = (dx / width) * 20 * falloff;
const lift = falloff * 36;
170 is the spread in pixels. Smaller, and only the card you are on reacts. Larger, and the whole grid tips like a table. Eighteen and twenty degrees is as far as these cards should go. Past that, the type looks like it is sliding off.
Each card stores rx, ry, z and a velocity for each. Stiffness 80 and damping 16 on the angles, a slightly softer spring on the lift. The highlight is not sprung. It is a radial gradient positioned with --sx and --sy in percentages of the card. Highlights should stick to the light. The card body should lag. That split is why the sheen feels like a reflection and the tilt feels like mass.
perspective: 1200px lives on the grid, not on each card. One camera for the field. transform-style: preserve-3d on the card lets translateZ actually come forward. The shadow is a plain drop shadow. It does not have to match the tilt exactly. A shadow that tracks perfectly looks computed. A soft one just says the card left the page.
Idle light
If the pointer has been still for 1.2 seconds, a slow oval stands in, the same way the spring mesh keeps a stand-in cursor. The field should not be a still grid until someone happens to cross it. On a real marketing section you may delete the stand-in and let the cards rest flat. Resting flat is a fine idle. The stand-in is for a page whose only job is the motion.
Reduced motion and text
Reduced motion targets zero tilt and zero lift. The cards remain a grid of names. Do not encode the only label in the tilt. “Paper”, “Clay”, “Sand”, “Moss”, “Dusk”, and “Bone” are headings. The colors are the second signal.
On a phone, a field of six tilting cards is a lot of finger movement for no task. The layout collapses to one column. The springs still run, and the falloff still prefers the card under the finger. If the section is only decorative, consider disabling the tilt below 720 pixels and leaving the color grid.
Questions about tilt cards
How do I tilt a card toward the cursor with a spring?
Measure the pointer against the card center. Map the offset to rotateX and rotateY, multiply by a falloff, and integrate a damped spring toward those angles instead of writing them on the element directly.
How do neighboring cards react less?
Use a Gaussian of the distance, exp(-dist² / (2 σ²)). Multiply the tilt and the lift by that weight. A linear falloff stays too strong at the edge. A hard cutoff pops when the pointer crosses it.
Why does my 3D card look flat?
translateZ does nothing visible without perspective on a parent and transform-style: preserve-3d on the card. Set the perspective once on the grid so every card shares the camera.