Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

FAQ Card Component

@arnold-ryan

Desktop design screenshot for the FAQ accordion card coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


I have a few questions I need help with:

  1. How do you get the svg edges to disappear inside the parent container, is it overflow hidden or something else?
  2. How do I make the transition smooth, at the moment mine is a bit jerky? Thanks

Community feedback

@boonyarit-iamsaard

Posted

Hi there 👋,

  1. If you mean the bg-pattern-*.SVG, I set it in CSS as the background image of the card container and then use the background-position properties to align with others.
  2. I use JavaScript to set the answer max height as CSS Combinators wouldn't work for transition. Check this out 📌

Enjoy challenging 👍

0

Please log in to post a comment

Log in with GitHub
Discord logo

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