room homepage master HTML SCSS JS

Solution retrospective
In this challenge, it was my first time working with animations and SCSS. I think in future projects, I’ll try using React and other JavaScript techniques like class-based components.
What challenges did you encounter, and how did you overcome them?Initially, I used CSS animations to automatically change the slide every 4 seconds, and JavaScript to handle the "prev" and "next" buttons. However, after testing, I realized that the animation and manual slide navigation weren’t in sync. At that point, I had two options: either switch everything to a pure HTML/CSS solution using :checked radio buttons, or go fully with JavaScript. Since I didn’t want to modify the HTML file too much, I decided to move everything over to JavaScript.
What specific areas of your project would you like help with?In this challenge, I explored SCSS, BEM, CUBE architecture, and CSS animations. I started by experimenting with SCSS and animations.
Using SCSS really helped make my code cleaner and more organized. However, I ran into some difficulties when trying to override styles within media queries — specifically, I had to write out the full parent selectors to ensure specificity and proper overriding.
I’d love to hear your experiences or best practices when working with SCSS, BEM, or CUBE. Also, do you think it’s a good time for me to switch to React? And when it comes to animations, do most developers prefer using CSS or JavaScript?
Thanks in advance for any insights you can share!
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Binh05'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