Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't use .ani cursor in css?

I have custom my website's cursor. But css cursor: url(...); Only work with .gif .png or .cur. I want use .ani file but it's only work in IE.

cursor: url(../img/mcursor.cur),auto;
like image 825
user3837245 Avatar asked Sep 30 '22 01:09

user3837245


1 Answers

IE supports .ani and .cur using Windows APIs. Webkit/Blink and Firefox have their own parsers for .cur (see ICOImageDecoder and nsICODecoder), but they do not have parsers for the ani format (as evidenced by no results from a code search for [ANIHEADER] etc.)

See Animated cursor support in web applications? for animated cursor support on browsers other than IE. Basically, at this time nobody else really supports any animated cursors.

like image 182
yonran Avatar answered Oct 03 '22 00:10

yonran