CSS3 scale3d() method Examples
CSS3 scale3d() method Examples
<!DOCTYPE html>
<html>
<head>
<title>CSS3 scale3d() Method</title>
<style type="text/css">
.container{
margin: 50px;
width: 125px;
height: 125px;
perspective: 300px;
border: 4px solid #6486ab;
background: #e9eef3;
}
.transformed {
-webkit-transform: scale3d(1, 1, 2) rotate3d(1, 0, 0, 60deg);
transform: scale3d(1, 1, 2) rotate3d(1, 0, 0, 60deg);
}
</style>
</head>
<body>
<h2>Before Scaling:</h2>
<div class="container">
<img src="css3.jpg" alt="CSS3">
</div>
<h2>After Scaling:</h2>
<div class="container">
<img src="css3.jpg" class="transformed" alt="CSS3">
</div>
</body>
</html>
Output