Can a pseudo-class with the same property as another pseudo-class be prevented from being transitioned? Take a look at this example code:
button {
height: 50px;
width: 150px;
font-size: 20px;
color: white;
border: none;
background-color: blue;
transition: all 1s ease-in 500ms;
}
button:hover {
background-color: black;
}
button:focus {
background-color: green;
}
<button class="transition">Submit</button>
If I only want the transition to apply to the :hover
pseudo-class and not the :focus
pseudo-class, is it possible?