Skip to content

SPRING_PRESETS

const SPRING_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.

import { SPRING_PRESETS } from '@rpxl/riffle'
const { stiffness, damping } = SPRING_PRESETS.snappy