ps0604
ps0604

Reputation: 1081

Assign Font Awesome icon to cursor on hover

I want to use one of Font Awesome icons as the cursor/mouse pointer when I hover over a div. Is this possible? something like this:

.myClass:hover {
    cursor: <--- here assign to the cursor the Font Awesome icon
} 

Upvotes: 4

Views: 6505

Answers (1)

warkentien2
warkentien2

Reputation: 979

according to the documentation, the only way to achieve a custom cursor, is by using cursor: url();

So, tagging along with @RicardoRuiz 's answer:

  • someone created a fontawesome to png generator
  • download the .png icon,
  • store it inside your project assets directory or online e.g. dropbox
  • use CSS cursor: url() to use the icon image as a cursor.

Upvotes: 7

Related Questions