<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tranform</title>
</head>
<style>
*{
margin: 0px;
padding: 0px;
}
.container{
background-color: chocolate;
width: 75vw;
height: 80vh;
display: flex;
align-items: center;
justify-content: center;
}
.box{display: flex;
align-items: center;
justify-content: center;
color: red;
border: 2px solid red;
width: 150px;
height: 150px;
background-color: yellowgreen;
transition: all 0.5s ease-in-out ;
}
.box:hover{
transform: rotate(360deg);
transform: scale(3);
transform: translate(100px,150px);
transform: perspective(3);
transform: skew(40deg);
transform: matrix(20,25,35,25);
cursor: pointer;
background-color: yellow;
}
</style>
<body>
<div class="container">
<div class="box">
This is transform box
</div>
</div>
</body>
</html>
No comments:
Post a Comment