Hiya, I’m trying to work out how to use a custom cursor site wide. I’ve never used custom code before so if someone could help me out i’d really appreciate it; I’ve uploaded the cursor I want to use into my site images, its called mycursor.gif
Thanks for your help!
Romily
Is it a cursor that is not listed in the cursor panel of Webflow? (just to check you realize this panel exist, at the end of the Style tab)
On what elements do you want the cursor to show? Links?
sorry for the slow reply - thanks for your help! I want to cursor to be the default cursor for the sight - its not a webflow cursor- its a silly flashing star cursor!! thanks for your help
thanks vincent. I’ve published the cursor and amended the URL part of the code but I don’t understand what you mean by the element that should catch the cursor?
also do i just paste the whole thing in here? sorry for being ignorant
Thanks Vincent that’s brilliant! I’ve managed to make it work for a specific element; is there a word to use if I want the cursor to be used for all elements? Thanks!
Thank you so much for the detailed advice! You are always so helpful.
this works well.
However, when the cursor hovers on links, it defaults to the hand cursor. To be expected I suppose!
Could you please further explain how to define a custom cursor image for each state of the cursor?
I am trying to have a static custom cursor site wide, which then becomes an animated cursor when it is hovered over a link element.
Could I achieve this by uploading a gif animation as the hover-over state of my cursor?
If I am understanding you correctly, I must follow your initial instructions on how to set a custom cursor for a specific element.
However, I want this to happen for all the clickable links in my site, and there is many.
Must I do it individually for each one? That seems counter intuitive. Isn’t there a more ‘catch-all’ way of doing it?
Like somehow overriding the default hover cursor image?
Hi, I feel like I’m doing this to the T, but still not able to get it to work. The cursor image just stays at the bottom of the page, but never activates the cursor code. Also, do we need to set the image to “no display” after it works, or does the code take care of that? Here’s my link:
Thanks for the quick response! I had the code in the custom code field on the project settings. I just tried adding the HTML element with the above code and image link and still a no-go. I have it pointing to the .section .hero subclass.