https://m7madmomani2.github.io/reading-notes2
2D Transforms :- Two-dimensional transforms work on the x and y axes, known as horizontal and vertical axes.
}
2D Rotate :- he rotate value provides the ability to rotate an element from 0 to 360 degrees. Using a positive value will rotate an element clockwise, and using a negative value will rotate the element counterclockwise.
.box-1 { transform: rotate(20deg);
2D Scale :- Using the scale value within the transform property allows you to change the appeared size of an element.
.box-1 { transform: scale(.75);}
2D Translate :- The translate value works a bit like that of relative positioning, pushing and pulling an element in different directions without interrupting the normal flow of the document.
.box-1 { transform: translateX(-10px);
2D Skew :- skew, is used to distort elements on the horizontal axis, vertical axis, or both.
.box-1 { transform: skewX(5deg);}
3D Transforms:- hree-dimensional transforms work on both the x and y axes, as well as the z axis.
The easiest way for determining styles for different states is by using the :hover
,:focus
,:active
, and :target
pseudo-classes.
There are four transition related properties in total, including transition-property
, transition-duration
, transition-timing-function
, and transition-delay
.
@keyframes
rule. The @keyframes
rule includes the animation name, any animation breakpoints, and the properties intended to be animated.