Animations Flashcards

1
Q

What is a keyframe in CSS animations?

A

A keyframe assigns animation states to timestamps on a timeline, marking where animations start and end.

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

What does the @keyframes rule do in CSS?

A

It defines a custom animation sequence, referencing the animation states through timestamps.

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

What are the keywords used in the @keyframes rule?

A

The keywords are from (0%) and to (100%).

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

How can you add multiple positions in a @keyframes animation?

A

You can add as many positions as needed along the timeframe by specifying different percentages, e.g., 0%, 50%, 100%.

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

What does the animation-duration property define?

A

It defines how long the @keyframes timeline should run.

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

What is the default value for animation-duration?

A

The default value is 0 seconds.

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

What is the purpose of the animation-timing-function property?

A

It recreates natural motion in animations by controlling the pace of the animation.

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

Name some common values for animation-timing-function.

A

linear, ease, ease-in, ease-out, ease-in-out.

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

What does the animation-iteration-count property define?

A

It defines how many times the @keyframes timeline should run.

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

What is the default value for animation-iteration-count?

A

The default value is 1 time.

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

What does the animation-direction property control?

A

It controls which direction the timeline runs: normal (default), reverse, or alternate.

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

What is the purpose of the animation-delay property?

A

It specifies how long the browser should wait before starting the animation.

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

How does the animation shorthand property work?

A

It defines all animation properties in order.

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