Type something to search...
CSS Animation Notes
Src - Hope House Press - Leather Diary Studio @ Unsplash

CSS Animation Notes

CSS Animation rules and principles.

Shothands

  1. Transition - It follows the following syntax:
    transition: property duration timing-function delay;
    /* e.g. */
    transition: background-color 2s ease-in-out .2s;
    You can add multiple transitions separated by commas here. Or you can use all to perform all transition as:
    transition: all 0.2s ease-in-out .2s;
  2. Animation - Animation has the following syntax:
    animation: name duration timing-function delay iteration-count direction fill-mode play-state;
    /* e.g. */
    .ani {
       animation: colors 5s linear infinite alternate;
    }

Animation Shorthand initial values

  1. animation-name: none
  2. animation-duration: 0s
  3. animation-timing-function: ease
  4. animation-delay: 0s
  5. animation-iteration-count: 1
  6. animation-direction: normal
  7. animation-fill-mode: none
  8. animation-play-state: running

Animation Properties - Animation, Transform and Transition

PropertyDescription
animationA shorthand property that combines animation properties
animation-nameSpecifies a name for the animation sequence
animation-durationThe amount of time the animation lasts
animation-timing-functionDescribes the acceleration of the animation
animation-iteration-countThe number of times the animation repeats
animation-directionWhether the animation plays forward, in reverse, or alternates back and forth
animation-play-stateWhether the animation is running or paused
animation-delayThe amount of time before the animation starts running
animation-fill-modeOverrides limits to when animation properties can be applied
backface-visibilityDetermines whether the reverse side of an element may be visible in 3-D transforms
perspectiveEstablishes an element as a 3-D space and specifies the perceived depth
perspective-originSpecifies the position of your viewpoint in a 3-D space
transformSpecifies that the rendering of an element should be altered using one of the 2-D or 3-D transform functions
transform-originThe point around which an element is transformed
transform-styleUsed to preserve a 3-D context when transformed elements are nested
transitionA shorthand property that combines transition properties
transition-propertyDefines which CSS property will be transitioned
transition-durationThe amount of time the transition animation lasts
transition-timing-functionDescribes the manner in which the transition happens (changes in acceleration rates)
transition-delayThe amount of time before the transition starts

CSS Animation Tutorial: css-animation.io

Related Posts

CSS Selector Notes

CSS Selector Notes

CSS (SCSS) applies dynamic rules to html elements and with that it follows certain rules and principles. Here, we'll discuss different selectors to apply those rules and what order those will be applied.

read more
Javascript Tidbits

Javascript Tidbits

A list of javascript concepts that one must know or have some tricks - like call/apply, Intl.ListFormat.

read more
CSS Basics Notes

CSS Basics Notes

CSS basic rules and principles.

read more