@dioramajs/media/tilt
Exports of @dioramajs/media/tilt.
import { default, spring } from '@dioramajs/media/tilt'Functions
spring | Moves a spring towards `target` over `dt` seconds, exactly for any step. `ease` is about the time it takes to cover 63% of the way; 0 jumps. Returns whether it still moves. |
Constants
default | A card image tilts toward the pointer in its own perspective and lifts, with glare, an optional holographic foil and a soft shadow. At rest it is the DOM image. |