Animation works inconsistantly
See original GitHub issueMenu opens without animation sometimes. It looks like this:
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:
- Created a year ago
- Reactions:5
- Comments:9 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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