What is the purpose of using keyframes in CSS animations?
A). <div>To define the starting and ending states of an animation.
B). <div>To specify the duration of an animation.
C). <div>To control the easing function of an animation.
D). <div>To hide elements from users.
Which of the following CSS properties is used to define the duration of an animation effect?
A). <div>animation-duration
B). <div>transition-duration
C). <div>animation-timing-function
D). <div>transition-timing-function
How do CSS transitions differ from CSS animations?
A). <div>Transitions are more flexible and customizable than animations.
B). <div>Transitions allow for continuous looping effects.
C). <div>Transitions are used to define keyframes for animations.
D). <div>Transitions change property values smoothly over a specified duration.
How can CSS transitions and animations contribute to responsive design?
A). <div>By slowing down page loading times.
B). <div>By adding interactive elements to web pages.
C). <div>By improving visual appeal and engagement.
D). <div>By making elements static and unchanging.
Which of the following CSS properties is commonly used to create a smooth hover effect on a button?
A). <div>transition-property
B). <div>animation-name
C). <div>transition-duration
D). <div>animation-duration
Which CSS property is used to specify the number of times an animation should repeat?
A). <div>animation-iteration-count
B). <div>transition-duration
C). <div>transition-timing-function
D). <div>animation-delay
What role does the animation-direction property play in CSS animations?
A). <div>It specifies the number of times the animation should repeat.
B). <div>It defines the starting and ending states of an animation.
C). <div>It controls the direction of the animation (forwards, backwards, etc.).
D). <div>It specifies the easing function for the animation.
Which of the following is true about CSS transitions?
A). <div>They allow complex movements and transformations.
B). <div>They are used to define keyframes for animations.
C). <div>They change property values smoothly over a specified duration.
D). <div>They are more flexible and powerful than CSS animations.
What does the backwards value for the animation-fill-mode property in CSS animations signify?
A). <div>The animation starts from the beginning when triggered.
B). <div>The animation starts from the end when triggered.
C). <div>The animation starts from a specified keyframe when triggered.
D). <div>The animation starts from its current state when triggered.
What is the purpose of using the infinite value for the animation-iteration-count property in CSS animations?
A). <div>To apply a single iteration of the animation effect.
B). <div>To apply multiple iterations of the animation effect.
C). <div>To apply an infinite number of iterations of the animation effect.
D). <div>To pause the animation indefinitely.