-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtransform.html
52 lines (49 loc) · 1.23 KB
/
transform.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>transform</title>
<style>
*{
margin:0px;
padding:0px;
}
.container{
display:flex;
align-items: center;
justify-content: center;
background-color: aqua;
height:80vh;
}
.box
{
background:brown ;
border:2px solid black;
border-radius: 8px;
height:400px;
width:400px;
display:flex;
align-items: center;
justify-content: center;
transition: all 0.5s ease-in-out;
}
.box:hover{
/* transform:rotate(360deg); */
/* transform: skew(60deg); */
/* transform: scale(2); */
/* transform: translateX(200px);
transform: translateY(1400px); */
transform: translate(123px ,123px);
}
</style>
</head>
<body>
<div class="container">
<div class="box">
this is a box
</div>
</div>
</body>
</html>