â—‡ What is a CSS Transition?
Definition: Enables smooth changes between different states of CSS properties over a defined duration.
Shorthand property: Combines multiple transition-related properties into a single declaration.
â—ˆ What does transition do?
CSS transitions provide a way to control animation speed when changing CSS properties. Instead of having property changes take effect immediately, you can cause the changes in a property to take place over a period of time.
â—ˆ Why do you use transition?
CSS transitions allows you to change property values smoothly, over a given duration.
â—ˆ Where would you use transition?
Transition is mostly apply on interactive elements such as:
- Button
- Links
- Labels
- Selects
- Input Types:
- Button
- Radio
- Checkbox
- Submit
- Reset
- Range
- Image