forked from phcode-dev/staging.phcode.dev
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbackgroundlight.html
More file actions
98 lines (97 loc) · 2.32 KB
/
Copy pathbackgroundlight.html
File metadata and controls
98 lines (97 loc) · 2.32 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Backgroundlights</title>
<style>
*{
margin: 0;
padding: 0;
box-sizing: border-box;
}
body{
background-color: rgb(2, 250, 147);
animation: change 10s 2s infinite;
}
.container{
width: 100%;
height: 80vh;
display: flex;
justify-content: center;
align-items: center;
border: 2px solid black;
}
.box{
display: flex;
align-items: center;
justify-content: center;
width: 250px;
height: 150px;
border: 2px solid black;
margin: 1%;
}
.box1{
background-color: red;
}
.box1:hover{
transform: scale(2);
}
.box2{
background-color: yellow;
}
.box2:hover{
transform: skew(30deg);
}
.box3{
background-color: lawngreen;
}
.box3:hover{
transform: rotate(260deg);
}
.box4{
background-color: orange;
}
.box4:hover{
transform: translate(40px);
}
h1{
font-size: 2rem;
font-weight: bold;
font-family: cursive;
text-decoration: underline;
text-align: center;
margin: 2%;
}
@keyframes change{
0%{
background-color: lightslategray;
}
20%{
background-color: crimson;
}
40%{
background-color: lawngreen;
}
60%{
background-color: purple;
}
80%{
background-color: yellow;
}
100{
background-color: orange;
}
}
</style>
</head>
<body>
<h1>Play Ground</h1>
<div class="container">
<div class="box box1">Hover ME</div>
<div class="box box2">Hover ME</div>
<div class="box box3">Hover ME</div>
<div class="box box4">Hover ME</div>
</div>
</body>
</html>