reading-notes


Project maintained by mr-atta Hosted on GitHub Pages — Theme by mattgraham

CSS Transforms, Transitions, and Animations


  Transforms

Transforms

   The transform property applies a 2D or 3D transformation to an element.Each of these come with their own individual properties(rotate, scale, move, skew, etc.,) and values.

    Transforms Syntax     Transforms Syntax

    Transforms


3D Transforms

Working with two-dimensional transforms we are able to alter elements on the horizontal and vertical axes, however there is another axis (is Z axes). giving us control of depth as well as length and width.

    3D Rotate , 3D Scale , 3D Translate .(3D Skew is not suppurt 3d)     as:: transform: perspective(200px) rotateZ(45deg);



Transitions   and   Animations

Transitions

  Not all properties may be transitioned, only properties that have an identifiable halfway point. Colors, font sizes, and the alike may be transitioned from one value to another as they have recognizable values in-between one another. A handful of the more popular transitional properties include the following.

Transition Duration

Transition Timing

Transition Delay

Animations

  An animation lets an element gradually change from one style to another. You can change as many CSS properties you want, as many times as you want. To use CSS animation, you must first specify some keyframes for the animation.     Animations

    Animations