Transitions and Transforms Flashcards

1
Q

The keyword value _____ can be used to transition every animatable property in a CSS rule.

A

transition-property: all; (default)

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

What transition property defines how long a transition animation should take to complete?

A

transition-duration

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

Y/N: Is every CSS property an animatable property?

A

No

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

Y/N: Is it possible to define multiple transitions in one declaration?

A

Yes

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

What is used to specify the names of CSS properties that will be animated?

A

transition-property

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

How many values does the cubic-bezier function accept?

A

4

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

The default value for transition-timing-function is _____.

A

ease

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

What property can we use to increase or slow down the transition speed in its duration?

A

transition-timing-function

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

What is the correct order of point values for cubic-bezier?

A

cubic-bezier(P1x, P1y, P2x, P2y)

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

In the transition shorthand property, the second time value is considered the _____ value.

A

delay

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

Transition shorthand

A

property, duration, timing function, delay

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

Create a transition for the border-radius property of a div. Give the transition a duration of 2 seconds, a delay of 1 second, and a timing function that maintains a linear motion.

A

-webkit-transition: border-radius 2s linear 1s;

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

The default value of the transform-origin property is _____.

A

50% 50%

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

What are some of the angle units the rotate function accepts?

A

deg, grad, rad, turn

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

What transform function accepts one of various types of angle units as an argument?

A

rotate()

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

What is one of the possible benefits of using the translate function over positioning offsets?

A

it performs better because it’s hardware accelerated, which results in smoother animations

17
Q

What will position the transform-origin at the bottom-right corner of an element?

A

transform-origin: 100% 100%

18
Q

What is equivalent to translateZ(400px)?

A

transform: scaleZ(2) translateZ(200px);

19
Q

In the scaleZ function, the number argument we define…

A

is multiplied by the element’s current position on the Z axis

20
Q

When defining a rotate3d() function, what do the 4 values represent?

A

the first 3 values in the argument set the direction of the rotation and the fourth value sets the rotation angle

21
Q

Before transforming an element in 3D, we need to use what property to establish a 3D space?

A

perspective

22
Q

When a perspective is defined, the perspective value will be applied to what elements?

A

direct child elements only

23
Q

What declaration will pass down the 3D perspective to nested elements?

A

transform-style: preserve-3d;

24
Q

To tell the browser to hide the backside of a 3D element, we’ll need to use the _____ property and the value _____.

A

backface-visibility, hidden

25
Q

What perspective values will display the deepest perspective?

A

values less than 800-1000