Introduction to AnimeCursor
AnimeCursor is a front-end JavaScript library for web pages to replacing the system mouse pointer with a frame-by-frame animation supported cursor.
Since current CSS cursor does not truly support animated cursors (although mainstream browsers support setting cursor to GIF images, the cursor actually remains static on the page), achieving a genuinely animated cursor requires a non-native approach.
AnimeCursor injects a DOM element into the page that follows the mouse movement and automatically generates animated cursors based on user settings, delivering a highly customizable frame-by-frame animated cursor experience.
You just need to prepare your animated cursor images, tell AnimeCursor what cursors you need, and it will automatically add animated cursors to your webpage, helping you complete the final small piece of your beautiful website's puzzle.
AnimeCursor does not emulate operating system cursor behavior but focuses on visual presentation, such as the following scenarios:
Personalized personal homepage
Pixel / Retro UI
Special visual interactive webpages
In fact, AnimeCursor is suitable for any website that can utilize frame-by-frame animated cursors. Its main goal is to provide a convenient implementation method for designs requiring more interesting and free-form animated cursors.
Certainly, AnimeCursor can also be effective on other types of pages. For example:
Application backends / Management systems
Pages form-heavy with high accessibility requirements
Applications that must strictly adhere to system cursor behavior
AnimeCursor provides a complete lifecycle API. On pages where certain areas must strictly follow the system cursor behavior, you can dynamically enable or disable AnimeCursor by calling disable() and enable() where needed. This allows it to coordinate with a similarly stylized native cursor—strictly adhering to system cursor behavior where required, while achieving richer visual effects overall.
※ In fact, AnimeCursor was initially written for use on my personal website, where it was just part of the site's foundational JavaScript. After realizing I didn't need to reinvent the wheel for every new website, I decided to extract AnimeCursor into a standalone JavaScript library.
Custom cursor types and configurable tag matching rules
Sprite sheet animations supported
GIF animations supported
Optional pixelated rendering
Easy-to-use Debug mode
Lifecycle APIs such as refresh / destroy
Tested and supported browsers:
Chrome / Edge (latest version)
Firefox (latest version)
Browsers not fully tested:
Safari
AnimeCursor relies on modern browser features (such as the pointer: fine media query) and is not guaranteed to work properly on older browsers.