Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are discrete animations?

The MDN animation documentation refers to animation type being discrete. What does this mean?

like image 298
ryanve Avatar asked Jun 13 '17 00:06

ryanve


People also ask

How many types of animations are there in CSS?

animation-timing-function. animation-delay. animation-iteration-count. animation-direction.

What rule can be used to define animations?

Definition and Usage The @keyframes rule specifies the animation code. The animation is created by gradually changing from one set of CSS styles to another. During the animation, you can change the set of CSS styles many times.

What does CSS animation do?

CSS animations make it possible to animate transitions from one CSS style configuration to another. Animations consist of two components, a style describing the CSS animation and a set of keyframes that indicate the start and end states of the animation's style, as well as possible intermediate waypoints.

What is animation-delay in CSS?

The animation-delay CSS property specifies the amount of time to wait from applying the animation to an element before beginning to perform the animation. The animation can start later, immediately from its beginning, or immediately and partway through the animation.


1 Answers

Discrete animations proceed from one keyframe to the next without any interpolation.

Think of it the way you normally would think of an animation - one image to the next. Interpolation is inbetweening - filling in space between the main images (in the case of computer graphics these are found from formulas).

In traditional hand-drawn animation, the main artist would produce the keyframes, and an assistant would draw the inbetweens.

So discrete animation is like hand-drawn animation done without the inbetweens of an assistant.

like image 85
Brian Avatar answered Oct 15 '22 22:10

Brian