Show box shadow on Card on hover

All WYSIWYG Web Builder support issues that are not covered in the forums below.
Forum rules
IMPORTANT NOTE!!

DO YOU HAVE A QUESTION OR PROBLEM AND WANT QUICK HELP?
THEN PLEASE SHARE A "DEMO" PROJECT.



PLEASE READ THE FORUM RULES BEFORE YOU POST:
http://www.wysiwygwebbuilder.com/forum/viewtopic.php?f=12&t=1901

MUST READ:
http://www.wysiwygwebbuilder.com/getting_started.html
WYSIWYG Web Builder FAQ
Post Reply
p-murray
 
 
Posts: 14
Joined: Wed Feb 15, 2023 6:09 am

Show box shadow on Card on hover

Post by p-murray »

Hi,

I have read some threads on this but, I have had no luck trying to make a box-shadow appear on hover of a card control.

Has any one else done this? Is there a simple way to have a shadow appear behind a card when a user hovers or the mouse enters?

Thanks!

Paul
User avatar
Pablo
 
Posts: 23331
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Show box shadow on Card on hover

Post by Pablo »

You can do this with transitions.
https://www.wysiwygwebbuilder.com/transitions.html

This effect is implemented on the the page (What's New for 2023)
https://www.wysiwygwebbuilder.com/
p-murray
 
 
Posts: 14
Joined: Wed Feb 15, 2023 6:09 am

Re: Show box shadow on Card on hover

Post by p-murray »

Thanks Pablo!

Works great! Just curious though... I naturally wanted to explore more options so I changed the Timing from Linear to Ease-In-Out but it made no difference. Is this a bug or I am missing something? No big deal really as I am quite happy with the shadow appearing.

:D

Paul
User avatar
Pablo
 
Posts: 23331
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Show box shadow on Card on hover

Post by Pablo »

It is difficult so say anything meaningful about this without seeing what you have done.
But I doubt that this is a bug in WWB, because this is standard browser functionality. But you may have implemented it not correctly.

I assume you know what easing does?
p-murray
 
 
Posts: 14
Joined: Wed Feb 15, 2023 6:09 am

Re: Show box shadow on Card on hover

Post by p-murray »

Sure, easing is a transition timing function that can do some nice things. 8)

I could upload my project but, all I am doing is messing around with some effects on some card objects and trying to do something similar to what you did on the "what's new for 2023" page you mentioned. However, the box-shadow doesn't behave exactly like yours. It transitions in correctly but doesn't transition out like it yours. Is this a big deal? No, not at all. Just was curious. So, if you have a suggestion, great. If not, no worries. :) I truly appreciate your help.

Best,

Paul
User avatar
Pablo
 
Posts: 23331
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Show box shadow on Card on hover

Post by Pablo »

I can only help you, if I see what you have done.
If it works for me, then it can also work for you.
User avatar
crispy68
 
 
Posts: 3018
Joined: Thu Oct 23, 2014 12:43 am
Location: Acworth, GA
Contact:

Re: Show box shadow on Card on hover

Post by crispy68 »

There should be 2 inputs for the transition. Make sure you set a transition for the default and hover state.
p-murray
 
 
Posts: 14
Joined: Wed Feb 15, 2023 6:09 am

Re: Show box shadow on Card on hover

Post by p-murray »

Bingo!

That was the problem exactly. I added the (default) and now it's just like Pablo's!

Thank you both so much for your help! Now, I'm off to find more trouble. :D

Best to you!

Paul
Post Reply