Type Alias SpringOptions

SpringOptions: Partial<{
    countdown: number;
    damping: number;
    mass: number;
    soft: boolean;
    stiffness: number;
    velocity: number;
}>

Type declaration

  • Readonlycountdown: number

    How many iterations to wait for spring settling. Longer values may be needed if it seems the spring gets prematurely cut off. Default: 10

  • Readonlydamping: number

    Absorbs the energy, acting as a kind of friction. Helps to avoid oscillations where the spring doesn't 'end' Default: 10

  • Readonlymass: number

    How much 'weight' the spring has. Favour adjusting 'damping' or 'stiffness' before changing mass. Default: 1

  • Readonlysoft: boolean

    Default: false

  • Readonlystiffness: number

    How bouncy the spring is Default: 100

  • Readonlyvelocity: number

    Default: 0.1