This is my first post here as I recently started learning Webflow. I’m facing a couple of challenges with my project related to the Lottie animation and mobile navbar display:
Lottie Animation Issue: My Lottie animation for the navbar loads in its final state instead of the initial hamburger icon. Additionally, when clicked, the animation doesn’t play; it jumps directly to showing the navbar in fullscreen. Does anyone know how to set the Lottie animation to start in its initial state and play correctly on click?
Mobile Display Issue: On mobile, the navbar doesn’t cover the full screen on an iPhone; there’s still a strip of the body color visible at the top. Any advice on how to make the navbar fully cover the screen on mobile devices?
I’ve attached a screenshot for more context. Any insights or tips would be greatly appreciated!
For the first item it seems you managed to fix it?
For the second item you can try making the body’s background color change while nav is open/closed. I guess that this behaviour is due to notch design on iphone screens so likely body is still a little visible while nav is open.
Thanks a lot for your help! The first issue is fixed, and your suggestion for the mobile display worked perfectly—no more body color strip at the top!
However, I now have a new issue with the navbar animation: when the page initially loads, the navbar is open by default, and I always have to double-click to close it. Do you know how I could fix it so that the navbar starts closed and responds with a single click as expected? I’ll add a screenshot for reference.
Thank you so much for your help! I’ve found the solution, and it worked perfectly. In the navbar CLOSE animation, I deleted all the initial states, and that finally did the trick—now everything works as it should!