Open this example in the interactive library
Source code
<style>
.demo:hover {
background-color: #99f6e4;
}
</style>
<button class="demo" type="button">Try this button</button>
Change a button background on hover with native CSS. The preview includes a small shared demo stylesheet.
Open this example in the interactive library
<style>
.demo:hover {
background-color: #99f6e4;
}
</style>
<button class="demo" type="button">Try this button</button>