The cursor
property in CSS is used to specify the type of cursor to display when the mouse pointer is over an element. Here are some common values you can use:
default
: The default cursor (usually an arrow).
pointer
: A hand cursor, typically used for links.
text
: A text cursor (I-beam), used for text areas and input fields.
move
: A cursor indicating something is movable.
not-allowed
: A cursor indicating an action is not allowed.
help
: A help cursor, often a question mark.
crosshair
: A crosshair cursor.
wait
: An hourglass or spinner, indicating something is loading.
zoom-in
: A magnifying glass with a plus sign, indicating zoom-in functionality.
grab
and grabbing
: Cursors indicating dragging functionality.
Here is an example of different cursor types in CSS:
You can also use custom images for cursors:
Feel free to use these examples to customize the cursor behavior in your project. Let me know if you need further assistance!