Skip to content
  • Unlock Pro
  • Log in with GitHub
Solution
Submitted over 1 year ago

FAQ accordion using CSS Flex, @media, @keyframes, JavaScript functions

Yaroslav Petrov•80
@PetyaBiszeps
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?

During this project I've learnt the most of all 3 I've done on Frontend Mentor. It gave me more understanding of JS overall since I'm new into it. It also gave me some basic understanding of JS/CSS transitions and how to communicate between JS/CSS to make them out. Overall, in my opinion, that's an amazing challenge to start with JS if you already know something about both HTML and CSS. At least that's how it worked for me ;)

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

Well, there is couple of them. Some were hard for newbie like me :D First of all is of course JS function that will control both showing answer and changing icon dynamically and depending on specific lines. I could go easy way but I'm learning so I spend kind of much time on creating short and single function that will control this process. Second thing is keyframes. I have never used them, that was the first time using them and at the start I didn't really understand them, but I overcame this as well ;)

Except that (because JS and Keyframes were really tough for me at this point) everything went just fine. Really good challenge for anyone starting their journey in JS!

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

I want to see overall expressions of this project. Is it okay in terms of CSS and is it good in terms of JS logic. Would be amazing, if someone could make advice on how to make it better!

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 Yaroslav Petrov'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