CSS Animation Flashcards

1
Q

How do you tell a browser that a page or part of a page is a 3D scene?

A

transform-style: preserve-3d

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

How do you you set depth in a 3D scene?

A

With the perspective property.

Give the property a size in px, em, rem etc.

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

Is a transform a form of animation?

A

No. A transform is not a form of animation, it is a way of setting an element’s position.

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

What is a “hero image”?

A

A large, attention-grabbing image at the top of a hompage.

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

What property allows an animation to be paused on hover, for example?

A

animation-play-state

.screen:hover {

animation-play-state: paused;

}

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

The transform property is used by setting what of an element?

A

Setting a static position, skew or scale of an element.

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

Is a different transform required for each keyframe or state?

A

Yes

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

What must you set before using 3d transforms in CSS?

A

You must set a stage for the 3D using the perspective and transform-style properties.

In HTML terms, this means we create a container and tell the browser that some 3D stuff is going to happen.

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