UNPKG

@meganetaaan/mouse-follower

Version:

TypeScript library for creating animated sprites that smoothly follow mouse cursor or other targets using physics-based movement

9 lines (8 loc) 289 B
// Mouse Follower Library - Main Entry Point // Re-export physics utilities for advanced users export { updatePhysics, } from "./follower/physics.js"; export { // Core API follower, mouseTarget, offsetTarget, // Presets SPRITE_PRESET_STACK_CHAN, stackChanPreset, } from "./follower.js";