Skip to content

lalitkhokhar/faq-accordion-card-menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Frontend Mentor - FAQ accordion card solution

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

Table of contents

Overview

The challenge

Users should be able to:

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

Screenshot

Desktop

Mobile

Links

My process

Built with

  • Semantic HTML5 markup
  • CSS custom properties
  • CSS Grid
  • CSS Flexbox
  • CSS Animation
  • Javascript

What I learned

  • Use of variables in CSS
  • CSS Grid (first page designed using CSS grid only)
  • Creating Animation using CSS
@keyframes scaleUp {
    0% {
        transform: scale(0);
    }
    100% {
        transform: scale(1);
    }
}

.animation {
    animation: 0.5s ease-out 0s 1 scaleUp;
}
  • Use of calc function to create variable margins and font size
  font-size: calc(0.3vw + 1rem);
  margin-top: calc(100px - 2vh);

Continued development

Improving layout on mobile device and resized desktop screen

Useful resources

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published