negomi / react-burger-menu

:hamburger: An off-canvas sidebar component with a collection of effects and styles using CSS transitions and SVG path animations
http://negomi.github.io/react-burger-menu/
MIT License
5.05k stars 586 forks source link

Question : is it possible to have relative burger button position ? #351

Closed Eric691983 closed 4 years ago

Eric691983 commented 4 years ago

When I scroll the page including the burger menu, the button follows the display of the content : it is displayed on top of the content, outside the navbar at the top of the page. I'd like to include the button in the navbar and make it stay here.

Is there a property to do it ? Or should it be a possible enhancement ?

I've tried modifying css but without success, it breaks the overlay for example.

negomi commented 4 years ago

Hi @Eric691983, do you mean you have a fixed top nav bar, and would like to put the burger icon inside it?

If so, this might help: https://github.com/negomi/react-burger-menu/wiki/FAQ#i-have-a-fixed-header-but-its-scrolling-with-the-rest-of-the-page-when-i-open-the-menu

Let me know if this isn't what you mean though.

Eric691983 commented 4 years ago

Hi @negomi, yes sorry for my colorful english, you're right, I meant this feature. Weird that I missed this question/answer on the faq. Thanks ! Cheers from Lyon