Skip to content

kylekasprzyk/Frontend-Mentor-interactive-rating-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

frontendmentor Frontend Mentor - Interactive rating component solution

My Solution

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

Links

Built with

HTML5

CSS3

JavaScript

What I learned

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);
    }
}

Author

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published