CSS Animations and Transitions
This quiz covers fundamental concepts and practical applications of CSS Animations and Transitions. Test your understanding of animation techniques, property values, and transition effects.
Questions
What CSS property is used to define the duration of an animation?
- animation-duration
- transition-duration
- animation-timing-function
- transition-timing-function
Which CSS property controls the number of times an animation should repeat?
- animation-iteration-count
- transition-iteration-count
- animation-timing-function
- transition-timing-function
What is the default value for the animation-timing-function property?
- ease
- linear
- ease-in
- ease-out
Which CSS property is used to specify the delay before an animation starts?
- animation-delay
- transition-delay
- animation-timing-function
- transition-timing-function
What is the difference between CSS animations and transitions?
- Animations are for changing multiple properties, while transitions are for changing a single property.
- Animations can be repeated, while transitions cannot.
- Animations can be paused and resumed, while transitions cannot.
- All of the above.
Which CSS property is used to define the direction of an animation?
- animation-direction
- transition-direction
- animation-timing-function
- transition-timing-function
What is the purpose of the @keyframes rule in CSS animations?
- To define the starting and ending states of an animation.
- To specify the duration and timing of an animation.
- To control the number of times an animation repeats.
- To set the delay before an animation starts.
Which CSS property is used to specify the fill mode of an animation?
- animation-fill-mode
- transition-fill-mode
- animation-timing-function
- transition-timing-function
What is the purpose of the transition property in CSS?
- To define the duration and timing of a transition.
- To control the number of times a transition repeats.
- To set the delay before a transition starts.
- To specify the fill mode of a transition.
Which CSS property is used to specify the easing function of a transition?
- transition-timing-function
- animation-timing-function
- animation-direction
- animation-fill-mode
What is the difference between animation-name and animation properties in CSS?
-
animation-namespecifies the name of the animation, whileanimationis a shorthand property that includes all animation properties. -
animation-namedefines the keyframes of the animation, whileanimationspecifies the duration, timing, and other properties of the animation. -
animation-namecontrols the number of times the animation repeats, whileanimationsets the delay before the animation starts. -
animation-namespecifies the fill mode of the animation, whileanimationdefines the easing function of the animation.
Which CSS property is used to specify the starting point of a transition?
- transition-origin
- animation-origin
- animation-direction
- animation-fill-mode
What is the purpose of the steps() function in CSS transitions?
- To create a stepped transition effect.
- To define the duration and timing of a transition.
- To control the number of times a transition repeats.
- To set the delay before a transition starts.
Which CSS property is used to specify the playback rate of an animation?
- animation-play-state
- transition-play-state
- animation-timing-function
- transition-timing-function