Submitted over 2 years ago
Responsive Intro-Section-With-Dropdown-Navigation
@jaheemprevost
Design comparison
SolutionDesign
Solution retrospective
What could I have done better? Feedback would be greatly appreciated. Also, could I be given some advice on how to animate an element when it's display is being changed to none or a valid alternative if that's not possible.
Community feedback
- @johnsinerPosted over 2 years ago
Hello, great job on the webpage. I don't think you can animate an element when its display is changed to none because when the display is changed to none the element is instantly removed from the dom. An alternative will be to set the width or height of the element to 0, or the translate it outside of the available veiwport space with animation added.
Marked as helpful1
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