
Article preview component with Mobile-first-design approach
Design comparison
Solution retrospective
I think I'm proud of how to use what I learned so far, such as how to do DOM and event handler to show/hide the element on my website.
What challenges did you encounter, and how did you overcome them?The challenge is how to show/hide the element with a JavaScript approach. I want to do it with conditional if..else to manipulate the aspect but when I try to look at the documentation via MDN or W3Schools there's a method called "toggle" and I try to implement that method to my code and it looks good and simple too.
What specific areas of your project would you like help with?I want to know if there is a simple way to toggle an element instead of the one I'm using and maybe some advice to improve the accessibility of my code.
Join 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