Responsive Bookmark Homepage with React.js and Framer Motion

Solution retrospective
I am proud of my use of Framer Motion to animate sliding an active-tab indicator in the Features section, rotating accordion carets with expand/close interactions in the FAQ section, and scaling buttons throughout the page with hover and click effects. Next time, I would add animation to the expansion and closing of FAQ elements to give the accordion a more natural feel.
What challenges did you encounter, and how did you overcome them?I initially tried to use props to dynamically update colors in a reusable Button component, but I quickly realized that Tailwind CSS cannot concatenate partial class names. I learned that props need to be mapped to static class names, so I created an object to store my color variants and used props to call the desired variant in my Button styling.
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on mjclaypool's solution.
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