Skip to main content

Hi everyone! I’m creating a table with a row header component and I want to change the header’s state to a collapsed version based on the scrolled x position of table. The idea is that the row header has text when at x=0 and after let’s say x=-200, I animate a state change for the header component to a collapsed version so it’s sticky but not as wide.

 

I can’t seem to find a way to detect the X value of a layer so I am assuming that I can’t setup the conditional statement in order to update the state. Is this a correct assumption or is there a workaround? 

 

Thanks!

Figma does not let you trigger an event when a specified scroll depth is reached. This feature has been requested for years.

Here’s one of many people asking for it: