Design comparison
Community feedback
- @correlucasPosted about 2 years ago
๐พHello @fidelis1025, Congratulations on completing this challenge!
Great code and great solution! Iโve few suggestions for you that you can consider adding to your code:
Its really nice that youโve used some animation and effects! Something to improve the accessibility its to add a media query reducing the motion.The prefers-reduced-motion CSS media feature is used to detect if the user has requested that the system minimize the amount of non-essential motion it uses. Hereโs the code for that:
/* Remove all animations, transitions and smooth scroll for people that prefer not to see them */ @media (prefers-reduced-motion: reduce) { html:focus-within { scroll-behavior: auto; } *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
โ๏ธ I hope this helps you and happy coding!
0 - @denieldenPosted about 2 years ago
Hi Undie, congratulations on completing the challenge, great job! ๐
Some little tips for optimizing your code:
- add
main
tag and wrap the card for improve the Accessibility - you can use
picture
tag to change image by resolution -> read here - remove
margin-top
from the carddiv
because with flex they are superfluous - after, add
min-height: 100vh
to the parentdiv
with flex properties because Flexbox aligns child items to the size of the parent container - add
transition
on the element with hover effect
Hope this help! Happy coding ๐
0 - add
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