question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Animation works inconsistantly

See original GitHub issue

Menu opens without animation sometimes. It looks like this:

https://user-images.githubusercontent.com/92551370/159765763-e68dd7ce-35d6-41d5-9b48-de1b7db6f96d.mov

The only thing I changed in the library code is width for .bm-menu-wrap in burger-menu.css

.bm-menu-wrap {
    position: fixed;
    width: 754px!important;
    height: 100%;
    top: 0;
    transition: all 0.5s ease 0s !important;
}

@media (max-width: 754px){
    .bm-menu-wrap {
        width: 100vw!important;
    }
}

It looks like the custom width conflicts width something. I use slide animation, but the same problem appeared for all of them.

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:5
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
andrii-matviichukcommented, Apr 25, 2022

For me the fix was to remove isOpen, onOpen and onClose properties <Menu right pageWrapId={"page-wrap"} outerContainerId={"__next"} customBurgerIcon={ <Hamburger toggled={isHamburgerMenuOpen} toggle={setHamburgerMenuOpen} color="#FFFFFF" label="Show menu" size={35} /> } onStateChange={(state) => setHamburgerMenuOpen(state.isOpen)} >

0reactions
RossDoddscommented, Dec 9, 2022

For me the fix was to remove isOpen, onOpen and onClose properties <Menu right pageWrapId={"page-wrap"} outerContainerId={"__next"} customBurgerIcon={ <Hamburger toggled={isHamburgerMenuOpen} toggle={setHamburgerMenuOpen} color="#FFFFFF" label="Show menu" size={35} /> } onStateChange={(state) => setHamburgerMenuOpen(state.isOpen)} >

this worked for me expect I was able to keep the isOpen prop. it was just the onClose and onOpen I needed to remove

Read more comments on GitHub >

github_iconTop Results From Across the Web

Animation works just half/third of the time /inconsistently - Unity Forum
Thing is, enabling Animator only works half the time at best [even by manually triggering it within editor]. What would be the reason...
Read more >
performance - Jquery animations are working inconsistently - Stack ...
I'm working on a simple game project and playing around with jQuery to do some animations. For some reason, the smoothness and consistency...
Read more >
Animation behaving inconsistently between device and ...
I am having a strange issue with SwiftUI animations. My animation is working as intended in the simulator, but is totally broken on...
Read more >
Timeline and gsap.from Animation Working Infrequently or ...
I'm having a weird issue where one timeline and one forEach tween are only working some of the time after browser/page refresh.
Read more >
Stacked/Swapped animations behave inconsistently #497
Another possible cause could be that I am using absolute positioning inside of relative divs to stack multiple animations with the same size ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found