tags:

views:

46

answers:

2

I have set an animated gif as the cursor using the css cursor's url property.

However it's not being animated, only first frame is shown.

What's the problem? Do I have to use cur files or something?

Thanks.

BTW, this is a game where animated cursors are important.

+1  A: 

Are you using the extension .cur or .ani for your cursor ?

RobertPitt
No, using gif. Saw examples online using them, do only cur or ani animate?
Mark
Well, I Believe its the web standard format for icons so i would go with them, when you get .gif some browsers support them just to win over webmasters but some stick to the book and use only the RFC Valid ones
RobertPitt
A: 

Actually I have bad news (for myself). ani is supported only by IE. All the other browsers do not support animated cursors at all.

:( :(

All image formats supported by Gecko can be used. This means that you can use PNG, GIF, JPG, BMP, CUR etc. images. ANI is not supported. An animated GIF will not create an animated cursor.

https://developer.mozilla.org/en/Using_URL_values_for_the_cursor_property

Mark