-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path22_CSS_2D_Tranformation.html
108 lines (84 loc) · 1.97 KB
/
22_CSS_2D_Tranformation.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>CSS 2D Transformation</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link rel="stylesheet" href="bootstrap/css/font-awesome.min.css">
<style>
body{
font-family: "Comic Sans MS", sans-serif;
}
button{
background-image: url("img/image3.jpeg");
color: white;
border: none;
font-size: 22px;
padding: 12px 35px;
box-shadow: 0 0 5px black;
}
</style>
</head>
<body>
<h3>translate(10px,20px);</h3>
<button class="translate">
translate()
</button>
<br><br><hr>
<h3>rotate(45deg );</h3>
<button class="rotate_clock">
rotate_clock
</button>
<br><br><hr>
<h3>rotate(-45deg);</h3>
<button class="rotate_counter">
rotate_counter_clock
</button>
<br><br><hr>
<h3>scale(2,3);</h3>
<button class="scale_up">
scale up
</button>
<br><br><hr>
<h3>scale(0.8,0.8);</h3>
<button class="scale_down">
scale down
</button>
<br><br><hr>
<h3>skewX(20deg);</h3>
<button class="skewX_pos">
skewX Pos
</button>
<br><br><hr>
<h3>skewX(-20deg);</h3>
<button class="skewX_neg">
skewX Neg
</button>
<br><br><hr>
<h3>skewY(20deg);</h3>
<button class="skewY_pos">
skewY Pos
</button>
<br><br><hr>
<h3>skewY(-20deg);</h3>
<button class="skewY_neg">
skewY Neg
</button>
<br><br><hr>
<h3>skew(20deg,20deg);</h3>
<button class="skew_pos">
skew Pos
</button>
<br><br><hr>
<h3>skew(-20deg,-20deg);</h3>
<button class="skew_neg">
skew Neg
</button>
<br><br><hr>
<h3>matrix(1, 2, -1, 1, 80, 80)</h3>
<button class="matrix">
matrix
</button>
<br><br><hr>
</body>
</html>