.element{
transform: translate( [x], [y] );
}
.element{
transform: translate(-50%, 0);
// transform: translateX(-50%);
}
.element{
transform: rotate( [value] );
}
.element{
transform: rotate(-10deg);
}
.element{
transform: scale( [x], [y] );
}
.element{
transform: scale(2);
}
.element{
transform: rotate(-10deg) translateX(-50%) scale(2);
}
.element{
transition: [property] [duration] [ease] [delay];
}
#box{
height: 40px;
width: 40px;
background-color: rgba(19, 108, 108, 0.2);
transition: background-color 1s ease-in;
}
#box:hover{
height: 60px;
width: 60px;
background-color: rgba(19, 108, 108, 1);
}
#box{
height: 40px;
width: 40px;
background-color: rgba(19, 108, 108, 0.2);
transition: all 1s ease-in;
}
#box:hover{
height: 60px;
width: 60px;
background-color: rgba(19, 108, 108, 1);
}
#box{
height: 40px;
width: 40px;
background-color: rgba(19, 108, 108, 0.2);
transition: background-color 1s ease-in, height .3s ease-in-out, width .3s ease-in-out;
transition: all .3s ease-in-out, background-color 1s ease-in;
}
#box:hover{
height: 60px;
width: 60px;
background-color: rgba(19, 108, 108, 1);
}
#box{
height: 40px;
width: 40px;
background-color: rgba(19, 108, 108, 0.2);
transition: background-color 1s ease-in, height .3s ease-in-out, width .3s ease-in-out;
transition: all .3s ease-in-out 1s, background-color 1s ease-in;
}
#box:hover{
height: 60px;
width: 60px;
background-color: rgba(19, 108, 108, 1);
}
font-sizebackground-colorwidthleftdisplayfont-familyposition
@keyframes [name] {
from {
[styles];
}
to {
[styles];
}
}
#box{
height: 40px;
width: 40px;
background-color: rgba(227, 0, 89, 1);
animation: anim 2s ease-in-out 0s infinite;
}
@keyframes anim {
from{
height: 40px;
}
to{
height: 60px;
background-color: rgba(19, 108, 108, 1);
}
}
.element {
animation: [name] [duration] [timing-function] [delay] [iteration-count] [direction] [fill-mode] [play-state]
}
#box{
height: 40px;
width: 40px;
background-color: rgba(227, 0, 89, 1);
animation: anim 2s ease-in-out 0s infinite alternate forwards running;
}
@keyframes anim {
0%{
width: 40px;
}
50%, 70%{
height: 80px;
background-color: rgba(19, 108, 108, 1);
}
100%{
width: 60px;
}
}