Animation / Transition / Transformation Flashcards

1
Q

What is the purpose of the @keyframes property in CSS?

A

To define animations by specifying keyframes that indicate the start and end points of the animation

@keyframes allows for more complex animations by defining multiple intermediate waypoints.

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

Which attributes are used to control animations in CSS?

A
  • animation-name
  • animation-duration
  • animation-timing-function
  • animation-delay
  • animation-iteration-count
  • animation-direction
  • animation-fill-mode
  • animation-play-state

These attributes help in customizing the behavior and timing of CSS animations.

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

What is the function of the transition-duration property in CSS?

A

It specifies the duration of the transition effect

This property determines how long the transition takes to complete.

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

What properties can be managed by transition in CSS?

A
  • transition-duration
  • transition-property
  • transition-timing-function
  • transition-delay

These properties control the timing and the specific CSS properties that will undergo transitions.

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

What is the purpose of the transform property in CSS?

A

To apply 2D or 3D transformations to an element

Common functions include rotate(), translate(), scale(), and skew().

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

Fill in the blank: The _______ property is used to define the style of animations in CSS.

A

@keyframes

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

True or False: The transition-property property is used to specify which CSS properties should transition.

A

True

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

List some common transformation functions used in CSS.

A
  • rotate()
  • translate()
  • scale()
  • skew()

These functions allow for various modifications in position, size, and angle of elements.

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