-
Notifications
You must be signed in to change notification settings - Fork 0
/
tut38-Transform.html
53 lines (50 loc) · 1.35 KB
/
tut38-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
53
<!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;
}
.con{
display: flex;
width: 100vw;
height: 100vh;
justify-content: center;
align-items: center;
background-color: burlywood;
}
.box{
display: flex;
justify-content: center;
align-items: center;
width: 200px;
height: 200px;
font-size: 1rem;
background-color: rgb(216, 110, 34);
border: 4px solid brown;
transition:all 1s ease-in-out 0.2s;
}
.box:hover{
/* transform: rotate(90deg); */
/* transform:scale(2); */
transform: skew(30deg);
/* skew means box getting slanted */
/* transform:translateX(123px) ; */
/* transform:translateY(123px) ; */
/* transform:translate(-123px,-123px) ; */
}
</style>
</head>
<body>
<div class="con">
<div class="box">
<H2>This is a box</H2>
</div>
</div>
</body>
</html>