ืกืžื ื™ืื—ื“ืฉ

ืกืžืŸ ื—ืœืง

ืกืžืŸ ื—ืฅ ืขืœ ืงืคื™ืฅ. ื’ื•ืœืฉ ืื—ืจื™ ื”ืขื›ื‘ืจ ื•ืžืกืชื•ื‘ื‘ ืœื›ื™ื•ื•ืŸ ื”ืชื ื•ืขื”.

ื”ืชืืžื”

fillColor
glowColor
strokeColor

ืžื‘ื•ืกืก ืขืœ Smooth Cursor (MIT ืจื™ืฉื™ื•ืŸ) ยท ืชื ืื™ ืฉื™ืžื•ืฉ

ืžืืคื™ื™ื ื™ื

5 ืžืืคื™ื™ื ื™ื
ืžืืคื™ื™ืŸืกื•ื’ื‘ืจื™ืจืช ืžื—ื“ืœืชื™ืื•ืจ
cursorReactNodeโ€”ืืœืžื ื˜ ืžืฉืœืš ื‘ืžืงื•ื ื”ื—ืฅ.
springConfig{ damping: number; stiffness: number; mass: number; restDelta: number }โ€”ื”ื’ื“ืจื•ืช ื”ืงืคื™ืฅ: ืจื™ืกื•ืŸ, ืงืฉื™ื—ื•ืช, ืžืกื”.
fillColorstring"#000000"ื”ืžื™ืœื•ื™ ืฉืœ ื”ื—ืฅ.
glowColorstring"rgba(255,255,255,0.25)"ื–ื•ื”ืจ ืจืš ืกื‘ื™ื‘ ื”ื—ืฅ.
strokeColorstring"#ffffff"ืงื• ื”ืžืชืืจ ืฉืœ ื”ื—ืฅ. ืœื‘ืŸ, ื›ื“ื™ ืฉื”ื—ืฅ ื™ื™ืจืื” ืขืœ ื›ืœ ืจืงืข.

ืชืœื•ื™ื•ืช

1 ื—ื‘ื™ืœื•ืช ื ื“ืจืฉื•ืช

npm install motion

ืจื›ื™ื‘ื™ื ื“ื•ืžื™ื

ืœื›ืœ ื”ืจื›ื™ื‘ื™ื