Type alias SpringOpts

SpringOpts: {
    damping?: number;
    initVelocity?: number;
    precision?: number;
    stiffness?: number;
}

Type declaration

  • Optional damping?: number

    describe how the resistance to the spring movement

  • Optional initVelocity?: number
  • Optional precision?: number

    once the velocity and value are under this threshold, the simualtion is stopped

  • Optional stiffness?: number

    describe how the spring resists deformation