This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Petter Nilsson
Posted Oct 05 - Read on Facebook

Hey! I'm trying to change the cursor when hovering certain layers. Seems like setting layer.style["cursor"] used to work, but doesn't any more. Setting document.body.style.cursor works, but that affects the whole canvas. Anyone got any idea?

2 Comments

Krijn Rijshouwer

Hey Petter,

It's easy! Use the MouseOver and MouseOut event to listen for hovers. Then set and unset the cursor on those events. Here's a little example — http://share.framerjs.com/d9ayj9t1sijo/

Petter Nilsson

Ah! Didn't think about that. Thanks!

Read the entire post on Facebook