How Can I Make an Lottie Animation Hamburger Work for My Nav?
How Can I Make an Lottie Animation Hamburger Work for My Nav?
At a glance
The community member is trying to make a Lottie animation hamburger work for their navigation menu. They have tried embedding the Lottie script, but are unsure how to visually place it. Another community member suggests using GSAP to trigger the parent of the embed (menu button) to play the Lottie animation both ways. The community members discuss that Lottie is a script provided for HTML embed, and that they can use a click function to play the Lottie file by its class name or name. They also mention that Lottie has a JavaScript API that they would need to use to start and stop the animation when the user clicks on the embed or the parent element.