Skip to content

junayedrahaman50/faq-accordion

Repository files navigation

Frontend Mentor - FAQ accordion solution

This is a solution to the FAQ accordion challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.

Table of contents

The challenge

Users should be able to:

  • Hide/Show the answer to a question when the question is clicked
  • Navigate the questions and hide/show answers using keyboard navigation alone
  • View the optimal layout for the interface depending on their device's screen size
  • See hover and focus states for all interactive elements on the page

Screenshot

Desktop-view This is the desktop version of the component. I didn't upload the mobile version cause it's too long.

Links

My process

I have built the layout using flexbox. The Hide/Show effect of answers on clicking questions is implemented using necessary css classes. I have used jQuery to add sliding animation and click events. The classes are toggled using jQuery. Added media queries to make the component responsive.

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • Flexbox
  • jQuery

Author

About

This repository contains my solution for FAQ accordion challenge by Frontend Mentor.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published