How do you specify the duration of a transition effect in CSS?
- duration
- time-duration
- transition-duration
- transition-time
To specify the duration of a transition effect in CSS, you use the transition-duration property. This property defines the amount of time it takes for the transition to complete. You can specify the duration using units like seconds (s) or milliseconds (ms). For example, transition-duration: 0.5s; sets the transition duration to half a second.
Loading...
Related Quiz
- If you have a CSS rule with !important and another rule with higher specificity targeting the same element, which one will take precedence?
- What's the result of applying the grayscale(100%) filter to a colored image?
- You're tasked with creating a spinner loader animation that rotates 360 degrees indefinitely. How would you define this in the @keyframes rule?
- In CSS, if you want an element to inherit a property's value from its parent element, you would use the value ________.
- Which pseudo-class in CSS is used to target elements based on their position in a parent element, like the first child?