CSS Animation Delay

Pascual Vila
Frontend Instructor.
The animation-delay CSS property specifies the amount of time to wait from applying the animation to an element before beginning to perform the animation.
Positive vs Negative Delay
Positive values (e.g., 2s) indicate that the animation should begin 2 seconds after being applied.
Negative values (e.g., -1s) cause the animation to begin immediately, but partway through its cycle. For example, if you specify -1s, the animation will start immediately, but at the 1-second mark of the animation sequence.
Practical Uses
- Staggered Entrances: Apply increasing delays to a list of items to make them appear one by one.
- Loop Synchronization: Use negative delays to make multiple looping elements look like they are in different phases of the same motion.