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.
property,durations,timing-function,delaytransition-property: which properties to animatetransition-duration: how long the animation laststransition-timing-function: how the intermediate states are calculatedtransition-delay: to start the animation after a certain amount of time
transition-property
Defines which properties will transition.
as like -
- background
- color
- transform
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
- translate: moves the element along up to 3 axis (x,y and z)
- rotate: moves the element around a central point
- scale: resizes the element
- skew: distorts the element
transform-origin
|
Powered by:
@code4mk