UNPKG

smooth-cursor

Version:

A customizable, physics-based smooth cursor animation component for React applications with spring animations, velocity tracking, and rotation effects

15 lines (12 loc) 298 B
import { FC, JSX } from 'react'; interface SmoothCursorProps { cursor?: JSX.Element; springConfig?: { damping: number; stiffness: number; mass: number; restDelta: number; }; } declare const SmoothCursor: FC<SmoothCursorProps>; export { SmoothCursor };