SPRING_PRESETS
constSPRING_PRESETS:Readonly<Record<SpringPreset,Readonly<SpringConfig>>>
Defined in: animation/spring.ts:20
The stiffness/damping behind each named SpringPreset. Frozen,
so a consumer mutating an exported preset cannot change the feel of
every instance created afterwards.
Example
Section titled “Example”import { SPRING_PRESETS } from '@rpxl/riffle'
const { stiffness, damping } = SPRING_PRESETS.snappy