Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found
Not Found

Submitted

advice generator app

Jem0 120

@Jem0

Desktop design screenshot for the Advice generator app coding challenge

This is a solution for...

  • HTML
  • CSS
  • JS
  • API
2junior
View challenge

Design comparison


SolutionDesign

Solution retrospective


I'm having trouble creating the hover effect in the design. Any advice would be appreciated!

Community feedback

Marija H. 110

@mh1251

Posted

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 helpful

1

@vishalbrdr

Posted

Hello there, great job on the solution. You can use the box-shadow property for the hover effect.

2

@MrSnor

Posted

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;

image

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 GitHub
Discord logo

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