Animations Flashcards

1
Q

To create an animation sequence containing keyframes that indicate the start and end states of an animation, we’ll need to use what?

A

@keyframes

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

Y/N: Is the animation name optional in a keyframe rule?

A

No

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

Y/N: Are we able to use transform functions in keyframe rules?

A

Yes

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

What is one of the benefits of using percentages for keyframe selectors instead of the keywords “from” and “to”?

A
  • we can define the intermediate steps of the animation sequence, so we have more control over how the animation progresses
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Using the keyframe keyword “from” is the same as using _____.

A

0%

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

Using the keyframe keyword “to” is the same as using:

A

100%

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

Using the prefix for WebKit-based browsers, create a property that will bind the keyframe sequence “slide” to the .prog-bar selector.

A

.prog-bar {
-webkit-animation-name: slide;
}

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

Using the prefix for WebKit-based browsers, add a new property that will give an animation a duration of 2 seconds.

A

-webkit-animation-duration: 2s;

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

Using the prefix for WebKit-based browsers, add a timing function property that will give an animation a linear motion.

A

-webkit-animation-timing-function: linear;

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

Using the prefix for WebKit-based browsers, bind the rock-boat animation to the .boat selector. Give it a 3 second duration and set it to repeat infinitely.

A
.boat {
  -webkit-animation-name: rock-boat;
  -webkit-animation-duration: 3s;
  -webkit-animation-iteration-count: infinite;
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Using the prefix for WebKit-based browsers, bind the steam animation to the .steam selector. Give it a 4 second duration, a 2 second delay, and set it to repeat infinitely.

A
.steam {
  -webkit-animation-name: steam;
  -webkit-animation-duration: 4s;
  -webkit-animation-delay: 2s;
  -webkit-animation-iteration-count: infinite;
}
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Using the prefix for WebKit-based browsers, bind the bg-move animation to the body selector. Give it an 8 second duration, then set it so that the final keyframe continues to apply after the animation sequence has completed.

A

body {
-webkit-animation: bg-move 8s;
-webkit-animation-fill-mode: forwards;
}

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

Using the prefix for WebKit-based browsers, bind the mike-float animation to the .mike selector. Give it a 3 second duration and set it to repeat infinitely.

A

.mike {
-webkit-animation: mike-float 3s infinite;
}

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

Animation shorthand

A

name, duration, timing-function, delay, iteration-count, fill-mode

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