I'm building a drawing app, and I want a cursor in form of circle. I searched HTML5 style to make cursor default, pointer etc, but I need it to be a circle. How can I do this?
Asked
Active
Viewed 6,292 times
4 Answers
3
What you want can be done by CSS.
Check out the following snippet and this jsfiddle
#circle64 {
cursor: url('http://www.iconsdownload.net/icons/64/16574-black-circle.png'), pointer;
}
#circle32 {
cursor: url('http://www.iconsdownload.net/icons/32/16574-black-circle.png'), pointer;
}
#circle24 {
cursor: url('http://www.iconsdownload.net/icons/24/16574-black-circle.png'), pointer;
}
<div id='circle64'>
Cursor will
<br>be</br>different here.
</div>
<br>
<br>
<br>
<div id='circle32'>
Cursor will
<br>be</br>different here.
</div>
<br>
<br>
<br>
<div id='circle24'>
Cursor will
<br>be</br>different here.
</div>

Shrinivas Shukla
- 4,325
- 2
- 21
- 33
0
you can use an image as cursor, by using this css property
cursor: url(images/my-cursor.png), auto;
for example if you have some input and you want to show round cursor on it , you should use png image
input{
cursor: url(images/my-cursor.png), auto;
}
check this jsfiddle http://jsfiddle.net/pwy51Ly8/

Shahzad
- 550
- 1
- 6
- 24
-
you need to use image as cursor for example image like this http://s30.postimg.org/q2s76q6u5/Reload_arrow_32.png – Shahzad Jun 28 '15 at 16:46
0
You can use CSS cursor wait
div {
cursor: wait;
}
or
div {
cursor: url("your custom cursor image"), auto;
}

Rodrigo Taboada
- 2,727
- 4
- 24
- 27

Payer Ahammed
- 887
- 1
- 5
- 16
-
cursor :wait is not matching need, i tried loading image, but nothing happens – lekha pillai Jun 28 '15 at 16:42
-
1You can use animated gif or any png file in cursor:url(your png or gif) – Payer Ahammed Jun 28 '15 at 16:44
-
make sure your given url is currect exampe: cursor:url(http://www.javascriptkit.com/dhtmltutors/cursor-hand.gif), auto; – Payer Ahammed Jun 28 '15 at 16:55