Skip to main content
Solved

How to add top margin on sticky component/element?


ChangeTheRulesDesigns

Is it possible to add a top margin to a sticky element or component while scrolling?

In the scroll behavior position, there is a sticky stay at the top edge, but I don’t want it to stick on the top of the screen; I might need a margin or stick to an element while scrolling.

Thanks

Best answer by Gleb

Super easy, just create a frame that is the size of the margin from the top. Check out my Prototyping Tips & Hacks file for an example and other useful tips: https://figma.fun/GfJsF7 (page name: Sticky Element Margin)

View original

2 replies

Gleb
  • Power Member
  • 4706 replies
  • Answer
  • May 24, 2023

Super easy, just create a frame that is the size of the margin from the top. Check out my Prototyping Tips & Hacks file for an example and other useful tips: https://figma.fun/GfJsF7 (page name: Sticky Element Margin)


ChangeTheRulesDesigns

Thanks @Gleb yup that’s what I have thought 🙂 , though they don’t have it on the app itself, hopefully it is under development or future update 👍


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