CSS Animation Properties Flashcards

1
Q

What does the animation-name property do?

A

The animation-name property specifies the name of the @keyframes animation to be applied to the element.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the role of the animation-duration property?

A

The animation-duration property defines how long it takes for an animation to complete one full cycle. For example, animation-duration: 2s means the animation will last for 2 seconds.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What does the animation-timing-function property control?

A

The animation-timing-function property controls the speed of the animation over time. It defines how the animation progresses during its duration. Examples include linear (constant speed), ease (default, starts slow, speeds up, then slows down), ease-in, and ease-out.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What does the animation-delay property do?

A

The animation-delay property specifies the delay before the animation starts. For example, animation-delay: 1s will start the animation 1 second after it’s triggered.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the animation-iteration-count property?

A

The animation-iteration-count property specifies how many times the animation should repeat. You can use numbers (e.g., animation-iteration-count: 3 for 3 repetitions) or infinite to make the animation loop continuously.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How does the animation-direction property affect an animation?

A

The animation-direction property defines whether the animation should play forwards, backwards, or alternate between forward and backward. Possible values are normal (forward), reverse, and alternate.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the animation-fill-mode property?

A

The animation-fill-mode property specifies how an element should behave before an animation starts and after it ends. For example, using animation-fill-mode: forwards ensures the final state of the animation persists after it ends.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What does the animation-play-state property do?

A

The animation-play-state property controls whether the animation is running or paused. For instance, animation-play-state: paused will pause the animation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly