Answer the question
In order to leave comments, you need to log in
How to make animation for gradient with transparency?
I can not find a solution to one interesting moment.
Task :
Make a gradient button with different levels of transparency (for example, top 70%, bottom 20%), the transparency should change on hover (100%, 50%). The transition must be animated.
But with a gradient animation does not work for me.
.button {
background: -webkit-linear-gradient(rgba(0,0,0, .7), rgba(255,255,255, .2));
-webkit-transition: all .3s linear;
}
.button:hover{
background: -webkit-linear-gradient(rgba(0,0,0, 1), rgba(255,255,255, .5));
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question