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

What is Framer? Join the Community
Return to index
Jon Arnold
Posted Aug 24 - Read on Facebook

I tried to have a standard cursor and pointer cursor on a btn (in a scroller). This didn't work:
document.body.style.cursor = "auto"
sketch.btn.style.cursor = "pointer"

Anyone?

2 Comments

Derek Nguyen

if you want to have the cursor change on hover, you could try put it in a mouseover event. I don't know if there's a way to access the 'cursor' property directly through framer Layer, but this should work:
```
layer.onMouseOver -> @_element.style['cursor'] = 'pointer'
```

update: you don't need to call `_element`, just do
```
layer.onMouseOver -> @style.cursor = 'pointer'
```

Blaine Billingsley

You just need to do style = "cursor" : "pointer". The dot syntax won't work with cursor I believe

Read the entire post on Facebook