Design comparison
SolutionDesign
Solution retrospective
What are you most proud of, and what would you do differently next time?
Menu open animation
We can use gsap
to change height, making it an open and close animation.
function openMenu() { gsap.to(menu, { height: "100vh", duration: 0.5, ease: "power2.out" }); } function closeMenu() { gsap.to(menu, { height: "0", duration: 0.5, ease: "power2.out", }); }
Community feedback
Please log in to post a comment
Log in with GitHubJoin our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord