File tree Expand file tree Collapse file tree 1 file changed +105
-0
lines changed Expand file tree Collapse file tree 1 file changed +105
-0
lines changed Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
3
+ < head >
4
+ < meta charset ="UTF-8 ">
5
+ < meta http-equiv ="X-UA-Compatible " content ="IE=edge ">
6
+ < meta name ="viewport " content ="width=device-width, initial-scale=1.0 ">
7
+ < title > CSS Transform</ title >
8
+ <!--Style Tag-->
9
+ < style >
10
+ body {
11
+ margin : 0% ;
12
+ padding : 0% ;
13
+ }
14
+
15
+ section {
16
+ width : 100% ;
17
+ height : 100% ;
18
+ }
19
+
20
+ section div {
21
+ width : 200px ;
22
+ height : 50px ;
23
+ display : grid;
24
+ align-items : center;
25
+ justify-content : center;
26
+ border : 3px solid;
27
+ color : black;
28
+ margin : 20px auto;
29
+ transition : all 2s ease;
30
+ }
31
+
32
+ div : nth-of-type (1 ){
33
+ background-color : yellow;
34
+ }
35
+
36
+ div : nth-of-type (1 ): hover {
37
+ transform : translatex (200px ) scale (1.2 );
38
+ cursor : pointer;
39
+ color : white;
40
+ }
41
+
42
+ div : nth-of-type (2 ){
43
+ background-color : red
44
+ }
45
+
46
+ div : nth-of-type (2 ): hover {
47
+ transform : translatex (-200px ) scale (1.2 );
48
+ cursor : pointer;
49
+ color : white;
50
+ }
51
+
52
+ div : nth-of-type (3 ){
53
+ background-color : green;
54
+ }
55
+
56
+ div : nth-of-type (3 ): hover {
57
+ transform : translatex (200px ) scale (1.2 );
58
+ cursor : pointer;
59
+ color : white;
60
+ }
61
+
62
+ div : nth-of-type (4 ){
63
+ background-color : purple;
64
+ }
65
+
66
+ div : nth-of-type (4 ): hover {
67
+ transform : translatex (-200px ) scale (1.2 );
68
+ cursor : pointer;
69
+ color : white;
70
+ }
71
+
72
+ div : nth-of-type (5 ){
73
+ background-color : orange;
74
+ }
75
+
76
+ div : nth-of-type (5 ): hover {
77
+ transform : translatex (200px ) scale (1.2 );
78
+ cursor : pointer;
79
+ color : white;
80
+ }
81
+
82
+ div : nth-of-type (6 ){
83
+ background-color : blue;
84
+ }
85
+
86
+ div : nth-of-type (6 ): hover {
87
+ transform : translatex (-200px ) scale (1.2 );
88
+ cursor : pointer;
89
+ color : white;
90
+ }
91
+
92
+ </ style >
93
+
94
+ </ head >
95
+ < body >
96
+ < section >
97
+ < div > Transfrom</ div >
98
+ < div > Trnasfrom</ div >
99
+ < div > Trnasfrom</ div >
100
+ < div > Trnasfrom</ div >
101
+ < div > Trnasfrom</ div >
102
+ < div > Trnasfrom</ div >
103
+ </ section >
104
+ </ body >
105
+ </ html >
You can’t perform that action at this time.
0 commit comments