animation-duration control in CSS animations?animation-duration sets how long one cycle of the animation takes to complete.
For example, animation-duration: 2s; means the animation runs for 2 seconds.
animation-delay in CSS?animation-delay sets how long the browser waits before starting the animation.
For example, animation-delay: 1s; means the animation starts 1 second after the element appears.
animation-duration: 3s; animation-delay: 2s;
This means the animation waits 2 seconds, then runs for 3 seconds.
animation-delay have negative values? What happens if it does?Yes, animation-delay can be negative.
A negative delay means the animation starts partway through, as if it already ran for that time.
For example, animation-delay: -1s; starts the animation 1 second in.
animation-delay: 0s; animation-duration: 0.5s;
This means no waiting and a quick animation.
animation-duration specify?animation-duration controls the length of one animation cycle.
animation-delay sets the wait time before the animation begins.
animation-delay is set to -2s?Negative delay means the animation starts partway through, as if it already ran for that time.
animation-duration?animation-duration uses time units like seconds (s) or milliseconds (ms).
Zero delay means start immediately; duration sets how long it runs.
animation-duration and animation-delay work together in CSS animations.animation-delay in a web page.