Transition & Transform


Transition

CSS transitions allow to smoothly go from one element’s state to another. How it works is that individual properties are animated from an initial to a final state.

transition-property

Defines which properties will transition.
as like -

transition-duration

Defines how long the transition lasts.

transition-timing-function

same as animation timing function

transition-delay

Defines how long the transition has to wait before starting.

Transform-basic

Fashioning unique shapes.CSS transforms are a collection of functions that allow to shape elements in particular ways:

transform

transform-origin

transform-origin:50% 50%; /* center (default)*/
transform-origin: 10px 0; /* 10 px right offset*/
transform-origin: left bottom; /*bottom left*/