-
Notifications
You must be signed in to change notification settings - Fork 0
/
tranform.html
49 lines (44 loc) · 1.17 KB
/
tranform.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
<html>
<head>
<title>Transform</title>
<style>
body{
margin: 5%;
}
.rotate{
height: 150px;
width: 150px;
background-color: thistle;
transform: rotate(0deg);
transition-duration: 2s
}
.rotate:hover{
transform: rotate(360deg);
}
.skew{
height: 150px;
width: 150px;
margin: 1%;
background-color: teal;
transform: skew(10deg,10deg);
box-shadow: 10px 10px 0px rgb(1, 74, 74);
}
.scale{
height: 150px;
width: 150px;
background-color: turquoise;
margin: 5%;
transform: scale(1);
transition-duration: 2s;
}
.scale:hover{
transform: scale(2);
}
</style>
</head>
<body>
<div class="rotate">Hello</div>
<div class="skew"></div>
<div class="scale"></div>
</body>
</html>