Apply CSS properties when transition ends

you can add a delay like this:

transition: box-shadow 300ms, padding 300ms 400ms;

The box-shadow transition will start on hover and last 300ms, and the padding will start after 400ms and again last 300ms.

.something {
  background: blue;
  color: white;
  padding: 0px;
  background-clip: context-box;
  transition: box-shadow 300ms, padding 300ms 400ms;
}

.something:hover {
  box-shadow: 0px 0px 3px blue;
  padding: 10px;
  margin: 10px 0px;
}
<div class="something">Something</div>

Article on CSS-Tricks

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)