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.
- 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
I added a waving animation for the card component on page load.
.card {
width: 25.75rem;
height: 26rem;
border-radius: 1.875rem;
padding: 2rem;
animation: rotateCard 1000ms ease-in-out;
}
@keyframes rotateCard {
0% {
transform: rotate(0deg);
}
25% {
transform: rotate(10deg);
}
50% {
transform: rotate(-10deg);
}
75% {
transform: rotate(10deg);
}
100% {
transform: rotate(0deg);
}
}
- Frontend Mentor - @kylekasprzyk