Cuberto / mouse-follower

A powerful javascript library to create amazing and smooth effects for the mouse cursor on your website.
MIT License
739 stars 64 forks source link

How to add icon in cursor. #33

Open sagarkhadka opened 1 year ago

sagarkhadka commented 1 year ago

I am doing like this but the icon is not applying. I even tried to add svg code directly in data-cursor-icon but didn't work.

<h4
  data-cursor-icon='/icons/up-arrow.svg'
  id={`service-${index}`}
  ref={serviceRef}
  className='tracking-[-0.25rem] md:tracking-[-0.5rem]'
>
  {serviceTitle}
</h4>

it only enlarges the icon image