Responsive and accessible Contact form using CSS Grid

Solution retrospective
-
I followed a responsive, mobile-first approach while styling this contact form using CSS Grid.
-
I used a function to change the background color of the radio buttons’ containers when selected.
-
I used JavaScript for Displaying a Popup Message on Form Submission.
JavaScript for Displaying a Popup Message on Form Submission This was an interesting challenge where I added a .show class to the popup message to make it visible. I also had to adjust the animation for how the message appeared and disappeared.
POPUP.classList.add("show"); // Show popup msg
Then, is CSS:
#success_msg.show { display: flex; animation: fadeInOut 5s ease forwards; } @keyframes fadeInOut { 0% { opacity: 0; } 10%, 90% { opacity: 1; } 100% { opacity: 0; } }
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Giulia'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