Skip to main content
Solved

How to add top margin on sticky component/element?

  • May 23, 2023
  • 2 replies
  • 4436 views

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)

This topic has been closed for replies.

2 replies

Gleb
  • Power Member
  • 4716 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 👍