2

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?

John Farkerson
  • 2,543
  • 2
  • 23
  • 33
lekha pillai
  • 45
  • 1
  • 7

4 Answers4

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
0

From this link "It wasn't working because your image was too big - there are restrictions on the image dimensions. In Firefox, for example, the size limit is 128x128px"

Community
  • 1
  • 1
Bharath S
  • 364
  • 4
  • 10