- Two properites to know:
transition
andtransform
- With these two properties, any selector or pseudo-selector can be made interactive for the user and way more awesome.
transform
is used to specify the changes that will be made to the element itself.transform-origin
can be used to specify the position of the transformation. Default is the center of the element.- Some fun transform options:
scale()
: effects the size of the elementskewX()
&skewY()
: tilts the element to the left or righttranslate()
: moves an element to the left or up and downrotate()
: rotate the element clockwise
transition
is used to control the timing, duration, and style of a change between two states of an element. It is shorthand for the following properties:transition-delay
default: 0stransition-duration
default: 0stransition-property
default: alltransition-timing-function
default: ease
- Transitions provide quite a bit of control on the look and feel of the transformation applied to an element.
http://ianlunn.github.io/Hover/
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Transforms/Using_CSS_transforms
https://css-tricks.com/almanac/properties/t/transform/