Skip to content

SpringConfig (core)

Defined in: types.ts:140

A spring’s feel, in stiffness and damping.

import type { SpringConfig } from '@rpxl/riffle'
const spring: SpringConfig = { stiffness: 340, damping: 34 }

damping: number

Defined in: types.ts:144

Higher settles with less overshoot.


stiffness: number

Defined in: types.ts:142

Higher pulls harder toward the target.