-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path19_Transform.html
More file actions
59 lines (49 loc) · 1.65 KB
/
19_Transform.html
File metadata and controls
59 lines (49 loc) · 1.65 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSS Transform</title>
<style>
.box{
height: 50px;
width: 50px;
background-color: #d63f3f;
border: 2px solid black;
display: flex;
justify-content: center;
align-items: center;
/* transform: rotatez(70deg); */
/* ye x axis ke abt rot hoga */
transform: rotate(20deg);
/* turns bux by x degrees */
/* transform: scale(1.5); */
/* utne times bda hojaayega */
/* transform: scale3d(1.5); */
/* transform:skew(5deg); */
/* rhombus shape ya aur slopyy shape bna skta hai */
/* transform: rotate(0.5turn); */
/* 180 turn hojaayeg */
/* transform: translatex(100px); */
/* translate() moves an element from its current position (according to the parameters given for the X-axis and the Y-axis). */
/* transform: translatex(100px) translatey(200px) skew(5deg); */
/* multi use */
transform-origin: 0% 0%;
/* ab rotation ya aur kuch sb ek point pe hoga */
}
.container{
width: 100vW;
height: 80vh;
border: 2px solid blue;
margin: 60px;
}
</style>
</head>
<body>
<div class="container">
<div class="box">
hell
</div>
</div>
</body>
</html>