This is a solution to the Interactive rating component challenge on Frontend Mentor. Frontend Mentor challenges help you improve your coding skills by building realistic projects.
Users should be able to:
- View the optimal layout for the app depending on their device's screen size
- See hover states for all interactive elements on the page
- Select and submit a number rating
- See the "Thank you" card state after submitting a rating
- Semantic HTML5 markup
- CSS custom properties
- Flexbox
- Mobile-first workflow
- DOM Manipulation
- Javascript
I was able to reinforce and practice my basic knowledge of javascript and the DOM.
Most importantly, I learnt how to use the :focus pseudocode and how to use the transition-property for animations and transform-property.
.item:focus {
background-color: var(--light-grey);
color: var(--white);
}.btn {
transition: all 1s;
}
.btn:hover {
transform: translateY(-10px);
}-
Stackoverflow - This is a great site for solutions to your problems, especially if you get stucked.
-
MDN DOCS - This is an amazing site to read about the documentations of html, css and javascript properties.
-
Google Fonts - For all kinds of font styles, this is highly recommended.
