<!DOCTYPE html>
<html>
<head>
<title>CSS3 Transform</title>
<style type="text/css">
.main_div{
width: 300px;
height: 100px;
background-color: #F30;
border: 1px solid #0099da;
-ms-transform: translate(10px,20px); /* IE 9 */
-webkit-transform: translate(10px,20px); /* Safari */
transform: translate(10px,20px); /* Standard syntax */
}
</style>
</head>
<body>
<div class="main_div">
Lorem Ipsum is simply dummy text of the printing and typesetting industry.
Lorem Ipsum has been the industry's standard dummy text ever since the 1500s
</div>
</body>
</html>
<html>
<head>
<title>Rotate Methode</title>
<style type="text/css">
.main_rotation{
width: 300px;
height: 100px;
background-color: #F30;
border: 1px solid #0099da;
}
div#myDiv_1 {
/* IE 9 */
-ms-transform: rotate(20deg);
/* Safari */
-webkit-transform: rotate(20deg);
/* Standard syntax */
transform: rotate(20deg);
}
</style>
</head>
<body>
<div class="main_rotation">
www.freetimelearning.com.
</div>
<div class="main_rotation" id="myDiv_1">
www.freetimelearning.com.
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>CSS3 Transform Scale()</title>
<style type="text/css">
.scale_transform{
margin: 55px 100px;
width: 200px;
height: 100px;
background-color: #F30;
border: 1px solid #0099da;
border: 1px solid #0099da;
-ms-transform: scale(2,2); /* IE 9 */
-webkit-transform: scale(2,2); /* Safari */
transform: scale(2,2); /* Standard syntax */
}
</style>
</head>
<body>
<div class="scale_transform">
www.freetimelearning.com
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>CSS3 Transform ScaleX() and ScaleY()</title>
<style type="text/css">
.skew_x{
width: 300px;
height: 100px;
background-color: #F30;
border: 1px solid #0099da;
color:#FFF;
}
.my_skew_x{
-ms-transform: skewX(20deg); /* IE 9 */
-webkit-transform: skewX(20deg); /* Safari */
transform: skewX(20deg); /* Standard syntax */
background:#F30;
color:#FFF;
width: 300px;
height: 100px;
margin:5px 20px;
border: 1px solid #000;
}
.skew_y{
width: 300px;
height: 100px;
background-color: #F30;
border: 1px solid #0099da;
color:#FFF;
}
.my_skew_y{
-ms-transform: skewY(20deg); /* IE 9 */
-webkit-transform: skewY(20deg); /* Safari */
transform: skewY(20deg); /* Standard syntax */
background:#F30;
color:#FFF;
width: 300px;
height: 100px;
border: 1px solid #000;
}
</style>
</head>
<body>
<h4>SkewX()</h4>
<div class="skew_x">
www.freetimelearning.com
</div>
<div class="my_skew_x">
www.freetimelearning.com
</div>
<h4>SkewY()</h4>
<div class="skew_y">
www.freetimelearning.com
</div>
<div class="my_skew_y">
www.freetimelearning.com
</div>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<title>CSS3 Transform Matrix() Method</title>
<style type="text/css">
.matrix{
width: 300px;
height: 100px;
background-color: #F30;
border: 1px solid #0099da;
}
.matrix_2{
-ms-transform: matrix(1, -0.3, 0, 1, 0, 0); /* IE 9 */
-webkit-transform: matrix(1, -0.3, 0, 1, 0, 0); /* Safari */
transform: matrix(1, -0.3, 0, 1, 0, 0); /* Standard syntax */
width: 300px;
height: 100px;
background-color: #F30;
border: 1px solid #0099da;
}
.matrix_3{
-ms-transform: matrix(1, 0, 0.5, 1, 150, 0); /* IE 9 */
-webkit-transform: matrix(1, 0, 0.5, 1, 150, 0); /* Safari */
transform: matrix(1, 0, 0.5, 1, 150, 0); /* Standard syntax */
width: 300px;
height: 100px;
background-color: #F30;
border: 1px solid #0099da;
}
</style>
</head>
<body>
<div class="matrix">
www.freetimelearning.com
</div>
<div class="matrix_2">
www.freetimelearning.com
</div>
<div class="matrix_3">
www.freetimelearning.com
</div>
</body>
</html>