Design comparison
Solution retrospective
I'm proud of my skills finding information, it was a little bit tough
What challenges did you encounter, and how did you overcome them?challenges like how to seperate button from icon
What specific areas of your project would you like help with?more about before and after maybe
Community feedback
- @dylan-dot-cPosted 1 day ago
This is a great solution, it's accessible and well presented.
I would like to know how you did the toggle animation as well as the
will-change
attribute.0@OmiromirPosted about 18 hours ago@dylan-dot-c Hi, thx u for your question, i can say that, my toggle animation works by smoothly changing the opacity and max-height of the content when the aria-expanded attribute is toggled and the will-change property is used to optimize performance by telling the browser these properties will change, making the animation smoother.
i hope, i answered clearly
1@dylan-dot-cPosted about 17 hours ago@Omiromir thanks! Whenever I try to do the toggle animation by changing the height I normally set height 0 then height to a specific value say 100px that will work but the issue I had would be 100px might not be enough for all the contents of the drop-down, but I never thought about using max-height for the animations as that would make sense and say the height is 100px but you animate max-height to 10rem, so it will automatically go from 0-100px and not 0-10rem
0
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