CSS Animation Flashcards

1
Q

What is transition?

A

transition-property: color;

transition-duration: 1s;

transition-timing-function: linear; (ease, ease-in)

transition-delay: 0.5s;

Not ALL properties have a transition state. It needs to have an “in-between” state to work

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

What are keyframe animations?

A

@keyframes animation-name{

1) Start with @keyframes
2) Add an animation name
3) Use a descriptive name
4) Set your breakpoints

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

What are some best practices for breakpoints?

A

1) Use a percentage value
2) Add breakpoints inside of the @keyframes
3) 0% start and 100% end
4) CSS properties to be animated added to the breakpoints

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

How do you actually ANIMATE?

A

You need to use animation-name with the keyframe name you created on the element with the class

Then set the animation duration in seconds or milli

You can also use:

animation-timing-function - which determines the acceleration speed

animation-delay: time delay before animation starts

animation-iteration: count of animation times

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