Skip to main content
Question

Hamburger overlay that when it expands it moves content underneath it

  • June 23, 2025
  • 9 replies
  • 62 views

Chris Legg

 

Hi Community, I am trying to create a hamburger menu that when it expands - opens to show page titles it moves the content - page title / breadcrumbs  down underneath it any ideas !? Included some images of the interaction I am trying to recreate…  CLOSED

 

OPEN

9 replies

giliard
  • New Participant
  • June 24, 2025

Is this result you're looking for?

 


Chris Legg
  • Author
  • New Member
  • June 24, 2025

Hi Giliard yes this is the result I am looking to achieve and understand…  thanks just seen your attached figma so best to go with more straight forward result instead of complex overlay - can it be done using a overlay? Think that was also my question from what I was reading? Anyway many thanks for sharing output. Chris 


giliard
  • New Participant
  • June 24, 2025

You can simply wrap (using auto layout) all the content in order that you want and then split into 2 screens:

1) with the menu closed (you can put opacity 0%, zero for height and check the "clip content" to make it not overlap during the animation).

2) with the menu opened. (set height to hug and opacity to 100%)

I've built this in this file, so you can explore it.


giliard
  • New Participant
  • June 24, 2025

Hi Giliard yes this is the result I am looking to achieve and understand…  thanks just seen your attached figma so best to go with more straight forward result instead of complex overlay - can it be done using a overlay? Think that was also my question from what I was reading? Anyway many thanks for sharing output. Chris 

Yes, it is possible with an overlay using absolute positioning for the elements that you want to be in front


Chris Legg
  • Author
  • New Member
  • June 24, 2025

Thanks Gillard, following so far … I was thinking about the animation - 

I am looking to know if I can replicate the way the hamburger menu animates
doubt I can as animation it animates upwards from the breadcrumbs !?

Any ideas  

https://environment.data.gov.uk/searchresults?query=&allowEmptySearch=false

Tested in iPhone SE responsive dimensions 

Appreciate input I had a play..


Chris Legg
  • Author
  • New Member
  • June 24, 2025

I assume thats what the other way of doing it gives you - overlay using absolute positioning for the elements that you want to be in front as you mentioned above - it gives move control over the animation styles you can apply… 


giliard
  • New Participant
  • June 24, 2025

Added some animation to the menu items, trying to replicate. Let me know what you think.


Chris Legg
  • Author
  • New Member
  • June 25, 2025

Hi Giliard, I assume from the response you built something and where looking to share it from the response - would be interested in taking a look.

Chris 


Chris Legg
  • Author
  • New Member
  • June 25, 2025

Hi Giliard, I have this at the moment - thought I would share my fail… Chris 

Menu Test