I need to create button and on hover it has to not only fill background color from bottom to top but also change text color from bottom to top.
I am alright with this approach here: CSS: Background fills on hover from bottom to top:
but it has to change also the inner text color from bottom to top
<style>
a {
background-image: linear-gradient(to top, yellow 50%, transparent 50%);
background-size: 100% 200%;
background-position: top;
transition: background-position 0.5s ease-in-out; /** I've changed the time for demo purposes **/
color: black;
}
a:hover {
background-position: bottom;
}
</style>
<a href="#">I'm a link</a>
<a href="#">I'm another link</a>
Here is screenshot of what exactly do I need: Here's a link to screenshot!