Is there a way to change the text color when a user hovers over it without interfering with the background effect? I currently have a hover effect set to show a background section when hovering over the text, but when I try to change the text color separately, it just covers the text with the background. Here is the code snippet:
.header-links {
font-size: 18px;
position: relative;
}
.header-links::after {
background-color: white;
content: '';
border-radius: 0%;
position: absolute;
width: 100%;
height: 100px;
margin: auto;
top: -10px;
left: 0em;
mix-blend-mode: multiply;
}
.header-links:hover::after {
background: green;
cursor: pointer;
}
.header-links:hover {
color: white;
}
<li class="header-links"> Tutorials </li>
<li class="header-links"> References </li>
<li class="header-links"> Exercises </li>
Any suggestions on how to solve this issue?