scale css
<style>
div {
width: 80px;
height: 80px;
background-color: skyblue;
}
.rotated {
transform: rotate(45deg);
background-color: pink;
}
</style>
/* In body of html doc */
<div>Normal</div>
<div class="rotated">Rotated</div>
4.25
8
transform: scale(2, 0.5); /* Equal to scaleX(2) scaleY(0.5) */
Thank you!
8
0
0
0
transform: matrix(1, 2, 3, 4, 5, 6);
transform: matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1);
transform: translate(120px, 50%);
transform: scale(2, 0.5);
transform: rotate(0.5turn);
transform: skew(30deg, 20deg);
transform: scale(0.5) translate(-100%, -100%);
transform: perspective(17px);
Thank you!
0
0
4.33
6
<!DOCTYPE html>
<html>
<head>
<style>
div.a {
width: 150px;
height: 80px;
background-color: yellow;
-ms-transform: rotate(20deg); /* IE 9 */
transform: rotate(20deg);
}
div.b {
width: 150px;
height: 80px;
background-color: yellow;
-ms-transform: skewY(20deg); /* IE 9 */
transform: skewY(20deg);
}
div.c {
width: 150px;
height: 80px;
background-color: yellow;
-ms-transform: scaleY(1.5); /* IE 9 */
transform: scaleY(1.5);
}
</style>
</head>
<body>
<h1>The transform Property</h1>
<h2>transform: rotate(20deg):</h2>
<div class="a">Hello World!</div>
<br>
<h2>transform: skewY(20deg):</h2>
<div class="b">Hello World!</div>
<br>
<h2>transform: scaleY(1.5):</h2>
<div class="c">Hello World!</div>
</body>
</html>
Thank you!
6
0
3.8
5
scale=For a two dimentional animation
Thank you!
5
0
3.67
6
.grow { transition: all .2s ease-in-out; }
.grow:hover { transform: scale(1.1); }
Thank you!
6
0
0
0
.grow { transition: all .2s ease-in-out; }
.grow:hover { transform: scale(1.1); }
Thank you!
0
0
0
0
.grow { transition: all .2s ease-in-out; }
.grow:hover { transform: scale(1.1); }
Thank you!
0
0
0
0
.grow { transition: all .2s ease-in-out; }
.grow:hover { transform: scale(1.1); }
Thank you!
0
0
0
0
.grow { transition: all .2s ease-in-out; }
.grow:hover { transform: scale(1.1); }
Thank you!
0
0
0
0
.grow { transition: all .2s ease-in-out; }
.grow:hover { transform: scale(1.1); }
Thank you!
0
0
0
0
.grow { transition: all .2s ease-in-out; }
.grow:hover { transform: scale(1.1); }
Thank you!
0
0
0
0
.grow { transition: all .2s ease-in-out; }
.grow:hover { transform: scale(1.1); }
Thank you!
0
0
0
0
.grow { transition: all .2s ease-in-out; }
.grow:hover { transform: scale(1.1); }
Thank you!
0
0
0
0
.grow { transition: all .2s ease-in-out; }
.grow:hover { transform: scale(1.1); }
Thank you!
0
0
0
0
.grow { transition: all .2s ease-in-out; }
.grow:hover { transform: scale(1.1); }
Thank you!
0
0
0
0
.grow { transition: all .2s ease-in-out; }
.grow:hover { transform: scale(1.1); }
Thank you!
0
0
0
0
.grow { transition: all .2s ease-in-out; }
.grow:hover { transform: scale(1.1); }
Thank you!
0
0
0
0
.grow { transition: all .2s ease-in-out; }
.grow:hover { transform: scale(1.1); }
Thank you!
0
0
0
0
.grow { transition: all .2s ease-in-out; }
.grow:hover { transform: scale(1.1); }
Thank you!
0
0
0
0
.grow { transition: all .2s ease-in-out; }
.grow:hover { transform: scale(1.1); }
Thank you!
0
0
0
0
.grow { transition: all .2s ease-in-out; }
.grow:hover { transform: scale(1.1); }
Thank you!
0
0
0
0
.grow { transition: all .2s ease-in-out; }
.grow:hover { transform: scale(1.1); }
Thank you!
0
0
0
0
.grow { transition: all .2s ease-in-out; }
.grow:hover { transform: scale(1.1); }
Thank you!
0
0
0
0
.grow { transition: all .2s ease-in-out; }
.grow:hover { transform: scale(1.1); }
Thank you!
0
0
0
0
.grow { transition: all .2s ease-in-out; }
.grow:hover { transform: scale(1.1); }
Thank you!
0
0
0
0
.grow { transition: all .2s ease-in-out; }
.grow:hover { transform: scale(1.1); }
Thank you!
0
0
0
0
.grow { transition: all .2s ease-in-out; }
.grow:hover { transform: scale(1.1); }
Thank you!
0
0
0
0
.grow { transition: all .2s ease-in-out; }
.grow:hover { transform: scale(1.1); }
Thank you!
0
0
0
0
.grow { transition: all .2s ease-in-out; }
.grow:hover { transform: scale(1.1); }
Thank you!
0
0
0
0
.grow { transition: all .2s ease-in-out; }
.grow:hover { transform: scale(1.1); }
Thank you!
0
0
0
0
.grow { transition: all .2s ease-in-out; }
.grow:hover { transform: scale(1.1); }
Thank you!
0
0
0
0
.grow { transition: all .2s ease-in-out; }
.grow:hover { transform: scale(1.1); }
Thank you!
0
0
0
0
.grow { transition: all .2s ease-in-out; }
.grow:hover { transform: scale(1.1); }
Thank you!
0
0
0
0
.grow { transition: all .2s ease-in-out; }
.grow:hover { transform: scale(1.1); }
Thank you!
0
0
0
0
.grow { transition: all .2s ease-in-out; }
.grow:hover { transform: scale(1.1); }
Thank you!
0
0
0
0
.grow { transition: all .2s ease-in-out; }
.grow:hover { transform: scale(1.1); }
Thank you!
0
0
0
0
.grow { transition: all .2s ease-in-out; }
.grow:hover { transform: scale(1.1); }
Thank you!
0
0
Are there any code examples left?
New code examples in category CSS
-
CSS 2022-03-27 22:50:16 make text bigger html5
-
CSS 2022-03-27 21:40:08 move list item to left css
-
CSS 2022-03-27 21:35:05 reduce image size css
-
CSS 2022-03-27 21:30:21 css image background center horizontally in div
-
CSS 2022-03-27 21:05:02 css button styles
-
CSS 2022-03-27 18:50:09 compass font awesome
-
CSS 2022-03-27 18:50:06 modal in materialize css
-
CSS 2022-03-27 17:55:12 box round corner css
-
CSS 2022-03-27 17:45:12 jquery add css
-
CSS 2022-03-27 17:45:01 css image fit in div with aspect ratio