negomi/react-burger-menu

Animations broken when 'right' side menu

Opened this issue · 2 comments

Really need the right side menu to animate out (like the left) vs pop out instantly.

Has anyone fixed this issue?

If not, perhaps someone can point me to where I can try and fork / fix it myself?

the problem seems to arise when using the context provider pattern provided in the docs, and when using scaleRotate or pushRotate

I've had this problem while implementing the component according to the README as well.

You interestingly don't see this same issue in the project homepage, so I think this is an unaddressed bug within the component itself which has been solved with a little setTimeout hack in the docs and examples.

If you wrap your call to setState with a little timeout like in this example, then everything animates smoothly.