-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhtmlcss3(2).html
More file actions
72 lines (53 loc) · 1.4 KB
/
htmlcss3(2).html
File metadata and controls
72 lines (53 loc) · 1.4 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<!DOCTYPE html>
<html>
<head>
<title> Belajar CSS 3 </title>
<style>
#translate{
width: 100px; height: 100px; background: blue;
/*transform: translate(sumbu X, sumbu Y);*/
transform: translate(50px, 20px);
}
#rotasi{
width: 100px; height: 100px; background: red;
/*transform: rotate(derajat);*/
transform: rotate(30deg);
}
#Skala1{
width: 100px; height: 100px; background: yellow;
/*transform: scale(x,y);*/
transform: scale(1,0.5);
}
#Skala2{
width: 100px; height: 100px; background: yellow;
/*transform: scale(x,y);*/
transform: scale(1.1,1.5);
}
#condong{
width: 100px; height: 100px; background: aqua;
/*transform: rotate(derajat);*/
/*transform: skewx(20deg);
transform: skewy(10deg);*/
transform: skew(15deg, -25deg);
}
</style>
</head>
<body>
<h1> Translate </h1>
<div id="translate"> </div>
<h1> Rotate </h1>
<div id="rotasi"> </div>
<h1> Scale 1 </h1>
<div id="Skala1">
ini contohnya seperti di zoom out
</div>
<h1> Scale 2 </h1>
<div id="Skala2">
ini contohnya seperti di zoom in
</div>
<h1> Skew </h1>
<div id="condong"> </div>
<br>
© inisial K
</body>
</html>