Professional Documents
Culture Documents
CSS Part 6
CSS Part 6
You can also add a color and a blur effect to the shadow:
div {
width: 300px;
height: 100px;
padding: 15px;
background-color: yellow;
box-shadow: 10px 10px 5px grey;
}
div.translate {
transform: translate(50px, 100px);
}
div.rotate {
transform: rotate(20deg);
}
div.scale {
transform: scale(2,3);
}
div.skew {
transform: skew(20deg,10deg);
}
#div2 {
transition-timing-function: ease;
}