CSS gradient animation on mouse 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
User avatar
wwonderfull
 
 
Posts: 1603
Joined: Fri Aug 21, 2020 8:27 am
Contact:

CSS gradient animation on mouse hover

Post by wwonderfull »

Any idea how to do a css linear gradient color animation on a button hover or even in layout grid background? I do know there is animation manager but only the solid color animation happens there is no example of gradient css animation.

for example like this https://colorlib.com/etc/lf/Login_v4/index.html
User avatar
BaconFries
 
 
Posts: 5978
Joined: Thu Aug 16, 2007 7:32 pm

Re: CSS gradient animation on mouse hover

Post by BaconFries »

Similar question at the following see Pablos reply.
https://www.wysiwygwebbuilder.com/forum ... 38#p470838
A quick Google gave this for reference only.
https://codepen.io/P1N2O/pen/pyBNzX
User avatar
Pablo
 
Posts: 23598
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: CSS gradient animation on mouse hover

Post by Pablo »

You can use the CSS transitions for this
https://wysiwygwebbuilder.com/transitions.html

A gradient is basically a background-image, defined as

Code: Select all

linear-gradient(to right, #04D7DF 0%, #FA02FF 100%)
then for hover use the inverse:

Code: Select all

linear-gradient(to right, #FA02FF 0%, #04D7DF 100%)
Post Reply