I have some text which already has a text-shadow, on hover I want the text-shadow color to transition horizontally similarly to this answer here:
https://stackoverflow.com/a/17212432/12278378
I don't think it makes a difference as this is a css question but I'm using react with styled-components.
Example:
.styled {
background-color: black;
font-size: 30px;
list-style-type: none;
margin: 0;
padding: 0;
text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
}
.styled:hover {
text-shadow: -1px -1px 0 cyan, 1px -1px 0 cyan, -1px 1px 0 cyan, 1px 1px 0 cyan;
}
<li class="styled">Test</li>