Design comparison
Solution retrospective
I'm having trouble creating the hover effect in the design. Any advice would be appreciated!
Community feedback
- @mh1251Posted over 2 years ago
Great job on the solution!! For the hover effect you can do this, it worked for me:
#btn-generate:hover { box-shadow: 0px 0px 30px 5px hsl(150, 100%, 66%); /*for a neon green color*/ transition: ease-in-out 500ms; }
the box shadow property syntax is: horizontal-offset / vertical-offset / blur / spread / color
Marked as helpful1 - @vishalbrdrPosted over 2 years ago
Hello there, great job on the solution. You can use the box-shadow property for the hover effect.
2 - @MrSnorPosted over 2 years ago
You need to add all the properties in
transition
that you mean to have the effect, like this-transition: transform 750ms ease-in-out, opacity 500ms ease-in-out, backdrop-filter 500ms ease-in-out;
ps- I am not 100% sure if its needed, but I added the
backdrop-filter:blur(0px);
to be sure the transition works perfectly.kudos!! you did a great job making this ^^
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