Sign-up Page With CSS Animations And CSS-Only Form Validation
Design comparison
Solution retrospective
Hey, everybody! ๐
This was a fun challenge which I actually quite enjoyed! ๐
I was able to match the desktop and mobile designs rather closely and only had to use one media query to make the page responsive (and managed to keep my code from turning into a mess), so I was quite happy with that! ๐
I decided to go with CSS-only form validation again, and this time, I let the browser handle the actual error messages and just focused on the validation icons (I added an extra green checkmark to make things look nice).
And, of course, I added some CSS animations from Animate.css to finish things off! ๐
Once again, feedback on both my design and code is welcome and appreciated! ๐
Happy coding! ๐
Community feedback
- @dovelmPosted almost 3 years ago
I like this effects!!!
2 - @aliabuhumraPosted about 3 years ago
What is the benefit of your situation tag (label) , Then you hid tag lavel display :none;, Is it because of Accessibility or because of another?
1@ApplePieGiraffePosted about 3 years ago@AliABUHAMRA
Yup! I didn't want the label elements themselves to be seen, but they should still be present for semantics and accessibility. That way, I could still make my solution according to the design but have labels available for screen readers to use. ๐
1 - @krishrahul98Posted about 4 years ago
Great Work.
1 - @zuolizhuPosted about 4 years ago
I understood these days people build out projects using JS frameworks such as React, and they relied on those JavaScript-code-generated-Virtual DOMs and don't really care about the "ancient" HTML anymore (I saw a situation where using JavaScript to check if the input field is empty ๐คฃ). "Anti-JavaScript" and diving deeply with the pure HTML and CSS is absolutely worth it!
I love how tiny your project is (comparing 2x size if using react) and the animations just make the user experience feels nice and smooth๐คฉ.
You don't have to use node-sass in your package, you can just use a vscode extension called Live Sass.
You can also break your
main.scss
into small pieces and import tomain.scss
which can make it easier to organize. And some simple scss architecture might also help for your big project ๐.Looking forward your next project!
Happy coding! ๐
1@ApplePieGiraffePosted about 4 years ago@zuolizhu
Thanks so much for the feedback! ๐
To be honest, I'm trying to use HTML and CSS as much as I can in my projects so that I can put off diving into JS frameworks just a little bit longerโbut I'll get to that fun, eventually! ๐
I decided to use a single SCSS file for this project because I initially thought I wouldn't need to write very much code (but that's I often feel when I first start a projectโonly to find out the truth a while later). ๐
And thanks for the link to Live Sassโthat'll be very convenient!
Happy coding! ๐
1
Please log in to post a comment
Log in with GitHubJoin 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