Skip to main content
Question

Advanced prototyping, detect scroll position

  • February 7, 2025
  • 1 reply
  • 53 views

Ozzyu

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!

Ben_Rubenstein

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:

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings