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

What is Framer? Join the Community
Return to index
Benjamin Lehn
Posted Nov 22 - Read on Facebook

Let's say I have a list and I want to show a highlighted state when I tap a list item, whereby the background color and text color change. What's the best way to go about doing that? the backgroundColor property doesn't seem to work within a state... can I target layer.style inside a state?

EDIT: I should clarify that I know it can be done with a separate layer, but that seems a bit messy given that it's ultimately an HTML style property anyway.

1 Comments

Pep Trias

Hi Benjamin, did you find a solution for this that doesn't involve another layer? I'm also trying to change the backgroundColor property within a state but it doesn't work...

Read the entire post on Facebook