Introduction to AnimeCursor

What is 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:

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:

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.

Features

Browser Support

Tested and supported browsers:

Browsers not fully tested:

AnimeCursor relies on modern browser features (such as the pointer: fine media query) and is not guaranteed to work properly on older browsers.