Transitions Flashcards

1
Q

What are CSS transitions used for?

A

CSS transitions interpolate between two states (initial and target).

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

What is the purpose of the transition-property?

A

It specifies which CSS properties to transition.

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

How do you define multiple properties for transition-property?

A

By listing them as a comma-separated list.

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

What does transition-duration define?

A

It defines the length of time a transition will take to complete.

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

What time units can be used with transition-duration?

A

Seconds and milliseconds.

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

What is the shorthand property for CSS transitions?

A

The shorthand property is transition, which combines transition-property, transition-duration, transition-timing-function, and transition-delay.

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

How is the shorthand transition written?

A

transition: <property> <duration> <timing-function> <delay>;</delay></timing-function></duration></property>

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

What elements can have transitions?

A

Elements that can have a middle state, between start and final states.

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

What CSS properties can be transitioned?

A

transform (scale, rotate, translate)
color, background-color, border-color
Shadows (for elevation change)

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

Which CSS property is used for transitioning transform effects?

A

The transform property.

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

What triggers CSS transitions?

A

Events like :hover, :focus, :active, and :target.

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

What type of visual effect can shadows indicate in CSS transitions?

A

Shadows indicate elevation changes.

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