Skip to main content

Improve the New Position Sticky Implementation

  • March 29, 2023
  • 54 replies
  • 29983 views

Show first post

54 replies

Marcus Fridholm

One important use case of sticky is to stick headers to the top and side in a table. While there are caveats, this is pretty easy to do in html/css, but right now it seems impossible in figma.

Wanted behavior:

  • Top/bottom row(s) stick to the top/bottom of the parent.
  • Left/right columns stick to the left/right side of the parent.

Consider building something like a timetable, where you want the trip number to be on top, and the stops to be on the left. If there’s a lot of trip and stops, the table can be far larger than the viewport, and you don’t want to lose track of which time corresponds to which stop, and likewise which trip each column represents.

Fairly simple to do in html/css, or in just about any spreadsheet application.


john-mainboard

Here is my solution. Nasty to setup:

 

 

 

  • If you already have a header that’s sticky or floating, then you have to add that header height to the table header so it sticks below that. 
  • So I added an auto layout to the header with a top padding of 100px. 
  • The header is made sticky (which includes this padding)
  • The auto-layout must be changes so that FIRST ON TOP (under the settings icon next to auto layout).
  • Then it will only stick while the table is being scrolled on the screen. 

 


Eliot Slevin

I can’t believe this feature was released unfinished 2 years ago, and then never updated. Dead features are the plan now?


frostmade
  • New Member
  • September 1, 2026

Ran into this exact wall on a real project — a sidebar that should ride WITH the article (down until its bottom shows, back up until its top does), and sticky-to-top just isn't that.

Ended up building a small Figma plugin for myself that opens the page as a real scrolling webpage: the smart-sidebar pattern above works, top bars stack under each other like on a live site, bottom bars push each other up, and the clicks/hovers/overlays you already wired in the Prototype tab come along. It exports one self-contained HTML file you can send to a client instead of explaining the behavior in words.

 

Free, no network access, nothing to configure: https://www.figma.com/community/plugin/1676379978276045790/web-behavior-preview

Not a substitute for native sticky inside Figma prototypes — I still hope this thread wins — but if you need to show the behavior today, it might save you an evening.