Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted 11 months ago

Faq Accordion with Transistions

progfish•280
@progfish
A solution to the FAQ accordion challenge
View live sitePreview (opens in new tab)View codeCode (opens in new tab)

Solution retrospective


What are you most proud of, and what would you do differently next time?

I am proud of creating an accordion for the first time, without using any sort of component-based library. It was a tough process, but I am more or less happy with the end result.

What challenges did you encounter, and how did you overcome them?

I had a couple of challenges in this project. The first, and major challenge, was trying to fit the img onto the body. I tried using background-image and could not get it to resize properly as the viewport changes. The second challenge was that whenever the accordion would open, it would create overflow on the horizontal scrollbar. I suppose I could use overflow: hidden, but I'm interested in knowing if maybe there is something off about my design.

What specific areas of your project would you like help with?

Did I use background-image correctly? Is there another way to fix my overflow issue?

Code
Loading...

Please log in to post a comment

Log in with GitHub

Community feedback

No feedback yet. Be the first to give feedback on progfish's solution.

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

Stay up to datewith new challenges, featured solutions, selected articles, and our latest news

Frontend Mentor

  • Unlock Pro
  • Contact us
  • FAQs
  • Become a partner
  • Use cases

Explore

  • Learning paths
  • Challenges
  • Solutions
  • Articles

Community

  • Discord
  • Guidelines

For companies

  • Hire developers
  • Train developers
© Frontend Mentor 2019 - 2025
  • Terms
  • Cookie Policy
  • Privacy Policy
  • License