I previously created a tool to enable the use of .ani files on the web. It's extremely easy to use and basically achieves an effect similar to using .ani files locally in web environments. Although there might be bugs or limitations caused by the rendering strategies of some browsers, you can give it a try: https://github.com/qingzhengQB/ani-cursor.js