Responsive Single Price Grid Component with hover effect using CSS
Design comparison
Solution retrospective
Would be happy to hear your feedback on this solution.
Community feedback
- @iwannabaaPosted over 3 years ago
I would use
transform: scale()
instead of changing the padding in the button on hover. Same spirit as the comment above.2@vitorlfariaPosted over 3 years ago@iwannabaa This worked better for me. Made the changes. Thanks for the tip.
0 - @iwannabaaPosted over 3 years ago
One more thing: If you specify the attributes to transform in the
.call-to-action a
rule, it won't have that small weird effect at the beginning. You can use something liketransition: transform 300ms ease, box-shadow 300ms ease;
0@vitorlfariaPosted over 3 years ago@iwannabaa Man! I was struggling on that too!! with this simple comment you taught me how to use the transition. Thank you very much for your feedback! Helped me a lot!
Keep the excellent work!
0 - @palgrammingPosted over 3 years ago
I would set your button size with a height and width so when you hover it and it enlarges then it does not effect the other content on the right side and the whole layout
0@vitorlfariaPosted over 3 years ago@palgramming Thanks for your feedback! So this is why the hover state affects the other elements!!
0
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