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.04k stars 582 forks source link

Elastic and Bubble animation change svg > path of other svg element on website and Menu don't animate then #431

Closed KaweckiBartek closed 3 years ago

KaweckiBartek commented 3 years ago

Hello

I have problem with menu animation in NextJs. On some page when i have other svg, the menu component is animating wrong svg. It change the first path of svg and animate it. In my example its search icon. I tried to change in file node_modules//react-burger-menu/dist/react-burger-menu.js and node_modules//react-burger-menu/lib/menuFactory.js .createElement and add an Id or className but it doesn't work.

I send you 3 screenshots from one page. 1) this is svg search icon 2) Menu when is open on Bubble effect 3) Menu svg path is not changing when is Open or close

Please Help me because your Burger Menu is awesome and I don't want to change it for another :)

![Screenshot 2021-01-04 at 12 08 36](https://user-images.githubusercontent.com/67326141/10352986 Screenshot 2021-01-04 at 12 08 36 Screenshot 2021-01-04 at 12 18 29

1-b2f64400-4e86-11eb-8fe2-f509b62fc64c.png)

KaweckiBartek commented 3 years ago

Screenshot 2021-01-04 at 12 09 17

negomi commented 3 years ago

Wow, this was a very specific bug, thank you for finding it 😄

I just published version 3.0.3 which contains a fix so it should work for you now.

KaweckiBartek commented 3 years ago

Hi Negomi :)

I updated the new version, but the problem is still as it was.

KaweckiBartek commented 3 years ago

@negomi

negomi commented 3 years ago

Oh no! Ok, I'll take another look later.

negomi commented 3 years ago

Hey @KaweckiBartek,

I tried to reproduce this problem locally but I wasn't able to.

Do you have a link to your repo I can look at to help debug?

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

kazerlelutin commented 1 year ago

Hello, I have the same problem, with version 3.0.8.

l4so commented 1 year ago

Hi, I had the same issue. The solution was to make the header render after the Menu