Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

Responsive animated FAQ page with SCSS

LDX_DEV 190

@ledoux25

Desktop design screenshot for the FAQ accordion coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
1newbie
View challenge

Design comparison


SolutionDesign

Solution retrospective


Hey ✌ My second javascript project, please check this up and criticise

Community feedback

@aykinsancakli

Posted

Hello,

I've reviewed the provided CSS code, and I'd like to share some feedback along with suggestions on how to enhance it for a more effective visual design, particularly when integrated with JavaScript.

.answer {
  overflow: hidden;
  max-height: 0;
  opacity: 0.3;

  /* Smooth transition effects for animation */
  transition: opacity 0.8s ease, max-height 0.3s ease;
}

.open .answer {
  max-height: 30rem;
  opacity: 1;
}

Feedback

  • The transition properties create impressive and smooth transitions when opening and closing answer boxes. This positively impacts the user experience.
  • When integrated with JavaScript by adding and removing the .open class, it becomes possible to dynamically control properties like the maximum height and opacity of answer boxes. This leads to a more responsive user interaction.

Marked as helpful

1

LDX_DEV 190

@ledoux25

Posted

@aykinsancakli Thank you very much i will adjust this in my future challenges ✔✔

1

Please log in to post a comment

Log in with GitHub
Discord logo

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