Open this example in the interactive library
Source code
<style>
.demo:active {
translate: 0 2px;
}
</style>
<button class="demo" type="button">Try this button</button>
Give an active button press feedback with native CSS. The preview includes a small shared demo stylesheet.
Open this example in the interactive library
<style>
.demo:active {
translate: 0 2px;
}
</style>
<button class="demo" type="button">Try this button</button>