/FAQ-accordion-card

FAQ accordion card - A simple accordion menu made with HTML, CSS and JS

Primary LanguageSCSSMIT LicenseMIT

FAQ accordion card

Table of contents

Overview

The challenge

  • View the optimal layout for the component depending on their device's screen size (mobile 345px and desktop 1440px)
  • See hover states for all interactive elements on the page
  • Hide/Show the answer to a question when the question is clicked

Stage 🏗

I'm refactoring the code but I've improved some animations, the HTML semantics and some of the JavaScript code that you can check in the other branches I created for the project.

Screenshots

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Sass
  • Flexbox
  • Animations
  • JavaScript
  • Mobile-first workflow

What I learned

I refreshed my CSS, Sass and JavaScript skills and experimented with the Live Saas Compiler plugin for VSC (absolutely in love with it).

I'm specially proud of the animated box on the Desktop layout where I worked hard with the "position" properties.

Thanks to

Thanks to my friend Nur for helping me out of the bad loops.

Author

🖤 Support

Sharing is caring, contributions and suggestions are always welcome.