Multiple Transitions

You can animate multiple properties at once.

Example:

.box {
  transition: background 0.5s, transform 0.5s;
}
.box:hover {
  background: coral;
  transform: scale(1.2);
}

Practice Task:
Animate background color, box-shadow, and scale together on hover.


Lesson 5: Transition Delay

Add a delay before the transition starts.

Example:

.box {
  transition: background 0.5s ease 1s;
}

Practice Task:
Create a button that starts animating 1 second after hover.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *