How to create a scrolling section over a fixed section?

Hi!

I’m new to Figma & design - but trying to create an interaction on a prototype which involves two sections on one frame. One section would be fixed and is the top part of the frame, whilst the second section would allow me to scroll over the first section.

A reference of the same interaction can be found here on mobile view: [The Classic Check Cashmere Scarf in Mid Camel | Burberry® Official]

Sadly when I fix position when scrolling of the the top section of the frame, and set the second section to vertical scrolling it will scroll underneath the top section which is fixed on scroll.

Any help or advice would be greatly appreciated.

1 Like

Have you found a solution for this?

When setting a layer to Fix Position When Scrolling, the layer will be above all other scrolling elements making any scrolling content appear beneath.

I created two variations on how you can get a result that might be more of what you’re looking for.

Here is a draft file you can see the difference:

2 Likes

This is super helpful! Do you think the nested approach could be achieved with three cards?

@Phil_Larsen 's solution is super helpful, but what about use cases where you want there to be scrolling content both above and below a fixed element, without 2 different scrolling frames?

Modifying the order of fixed elements is easy enough via z-index and position:relative in code — I’m a little confused as to why Figma opted to set all the fixed layers forcefully at the top in the first place. Curious if there’s an existing feature request addressing this issue.

This works if the “fixed” frame is just a plain color or image. But once you have buttons, text and anything else, when you toggle “fix position” it tends to be placed above everything else, so incoming frames from below when scrolling for example, those elements on the fixed frame shows in from of the incoming frame. I still can’t find solution for this one

I’m joining the question. I don’t understand why fixed elements are forced to be above everything else. Doesn’t make any sense.