Basic Syntax
Which property is required to specify the name of an animation you want to use on an element?
- A. animation-name
- B. transition-duration
- C. animation-effect
- D. animate-prop
- E. keyframes-name
Keyframes Usage
When creating an animation, which at-rule is used to define the animation steps in CSS?
- A. @keyframes
- B. @motion
- C. @anim-key
- D. @frameset
- E. @steps
Specifying Duration
Which property should you use to set how long a CSS animation takes to complete one cycle?
- A. animation-duration
- B. animation-loop
- C. duration-time
- D. cycle-time
- E. time-delay
Animation Timing Functions
If you want your animation to start slowly, speed up, and then slow down again, which timing function would you use?
- A. ease
- B. linear
- C. reverse
- D. ease-in-out
- E. delay
Delay Property
How can you add a 2-second delay before a CSS animation starts?
- A. animation-delay: 2s;
- B. animation-wait: 2s;
- C. delay-time: 2s;
- D. wait-animation: 2s;
- E. animation-stop: 2s;
Iteration Count
Which value makes a CSS animation run an unlimited number of times?
- A. infinite
- B. repeat
- C. endless
- D. looped
- E. forever
Shorthand Property
Which of these is the correct way to use the shorthand property to set all animation properties in one line?
- A. animation: slide 2s infinite linear;
- B. animate: slide 2s infinite linear;
- C. animation-all: slide, 2s, infinite, linear;
- D. animation: slide;
- E. anim: slide 2s infinite;
Direction Property
To make an animation play forwards and then backwards, which value should you set for the animation-direction property?
- A. alternate
- B. reverse
- C. infinite
- D. backward
- E. forwards
Pausing Animations
Which property and value will pause a running CSS animation on an element?
- A. animation-play-state: paused;
- B. animation-pause: yes;
- C. paused: true;
- D. stop-animation: on;
- E. play-animation: none;
Fill Mode
If you want an element to retain the styles from the last keyframe after an animation ends, which property and value should you use?
- A. animation-fill-mode: forwards;
- B. fill-animation: keep;
- C. after-style: on;
- D. animation-end: stay;
- E. animation-delay: final;
Multiple Animations
How can you apply more than one animation to the same element?
- A. List the animations separated by commas in the 'animation' property
- B. Use 'multi-animation' property
- C. Apply 'animation-double' property
- D. Add animations in separate selectors only
- E. Use the 'animations' property
Percentage in Keyframes
Inside a @keyframes rule, which statements represent the start and end of an animation using percentages?
- A. 0% and 100%
- B. 5% and 95%
- C. first% and final%
- D. begin% and end%
- E. start% and stop%
Transform with Animations
If you want to rotate an element 360 degrees during an animation, which property should you animate within the keyframes?
- A. transform
- B. position
- C. float
- D. margin
- E. transition
Animation State Change
What happens to a CSS animation when you set animation-play-state to 'running'?
- A. The animation continues to play
- B. The animation pauses
- C. The animation reverses direction
- D. The animation stops permanently
- E. The animation resets
Animation vs Transition
Which of the following statements best describes the difference between a CSS animation and a transition?
- A. Animations can run automatically, transitions require a trigger
- B. Transitions can use keyframes, animations cannot
- C. Animations only work on hover, transitions do not
- D. Both require event listeners in JavaScript
- E. Animations and transitions are exactly the same