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

What is Framer? Join the Community
Return to index
Jeff Young
Posted Sep 01 - Read on Facebook

Changing fontWeight using state isn't working for me. Works fine when I change it directly using layer.fontWeight. Bug or silly mistake?


Derek Nguyen

Seems like a bug, if you do `print home.fontWeight` at the very top of your file, it prints out undefined. Defining the fontWeight in code before adding states seems to fix it
home.fontWeight = 400

home.states.selected =
--fontWeight: 800

home.stateSwitch 'selected'

Niels van Hoorn

Yup, this is a bug. I just pushed a fix to Framer Library master, so if you choose Update Framer Library from the File menu it should work!

Read the entire post on Facebook