Design comparison
Solution retrospective
All went well I think; I started off with Mobile first technique for design and then used media query for desktop design. I then and took a course on basic JS and came back and finished the challenge. The only issue I faced was where to put the transition delay property for when the Accordion is expanding/collapsing. Please don't be worry about hurting my feeling with your feedback :P I need it.
Thanks in advance.
Community feedback
- Account deleted
Looks ok, I think you should decrease the transition of the arrows because 5s is way too slow.
1@mghadiehPosted over 3 years ago@thulanigamtee It is not working. The transition is actually too fast. you can check the live website: https://fem-faq-accordian.vercel.app/
I don't know where to put the transition property.
0 - @grace-snowPosted over 3 years ago
Hello,
You can't transition the display property. And you shouldn't be changing styles in javascript, just use js to manipulate the DOM in this.
Instead, add a class to the faq on click like
is-open
and control the styling in css based off the presence of that class. You can transition properties like opacity, visibility, height to create a nice open/close effecfGood luck
0
Please log in to post a comment
Log in with GitHubJoin 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