Bird
0
0

How can you make an Angular keyframe animation repeat infinitely with a 1-second delay?

hard📝 Application Q9 of 15
Angular - Animations
How can you make an Angular keyframe animation repeat infinitely with a 1-second delay?
AUse animate('1s', keyframes([...]), {repeat: 'infinite', pause: '1s'})
BUse animate('1s', keyframes([...]), {iterations: Infinity, delay: 1s})
CUse animate('1s', keyframes([...]), {iterationCount: 'infinite', delay: '1s'})
DUse animate('1s 1s infinite', keyframes([...]))
Step-by-Step Solution
Solution:
  1. Step 1: Understand animate() timing string format

    The string can include duration, delay, and iteration count like '1s 1s infinite'.
  2. Step 2: Check options for correct syntax

    Use animate('1s 1s infinite', keyframes([...])) correctly uses the timing string with duration 1s, delay 1s, and infinite repeats.
  3. Final Answer:

    Use animate('1s 1s infinite', keyframes([...])) -> Option D
  4. Quick Check:

    Timing string can include delay and infinite repeats [OK]
Quick Trick: Use timing string with duration, delay, infinite [OK]
Common Mistakes:
  • Trying to pass repeat options as object parameters
  • Using incorrect property names like iterationCount
  • Separating delay and repeat incorrectly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Angular Quizzes