Animation / Transition / Transformation Flashcards
What is the purpose of the @keyframes property in CSS?
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.
Which attributes are used to control animations in CSS?
- 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.
What is the function of the transition-duration property in CSS?
It specifies the duration of the transition effect
This property determines how long the transition takes to complete.
What properties can be managed by transition in CSS?
- transition-duration
- transition-property
- transition-timing-function
- transition-delay
These properties control the timing and the specific CSS properties that will undergo transitions.
What is the purpose of the transform property in CSS?
To apply 2D or 3D transformations to an element
Common functions include rotate(), translate(), scale(), and skew().
Fill in the blank: The _______ property is used to define the style of animations in CSS.
@keyframes
True or False: The transition-property property is used to specify which CSS properties should transition.
True
List some common transformation functions used in CSS.
- rotate()
- translate()
- scale()
- skew()
These functions allow for various modifications in position, size, and angle of elements.