Dev Helpers
← Back

Use a delayed transition

Use a delayed transition with native CSS. The preview includes a small shared demo stylesheet.

Open this example in the interactive library

Source code

<style>
  .demo {
    transition: background-color 0.15s 0.25s;
  }
  .demo:hover {
    background-color: #fef3c7;
  }
</style>
<button class="demo" type="button">Try this button</button>