Repository navigation
Expand file tree
/
Copy pathhover.html
More file actions
108 lines (103 loc) · 2.29 KB
/
Copy pathhover.html
File metadata and controls
108 lines (103 loc) · 2.29 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
99
100
101
102
103
104
105
106
107
108
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<style>
.box1{
background-color: black;
height: 200px;
width: 200px;
margin-left: 10%;
}
.box2{
background-color: black;
height: 200px;
width: 200px;
margin-left: 30%;
margin-top: -200px;
}
.box3{
background-color: black;
height: 200px;
width: 200px;
margin-left: 50%;
margin-top: -200px;
}
.box4{
background-color: black;
height: 200px;
width: 200px;
margin-left: 70%;
margin-top: -200px;
}
.c1{
border: 1px solid yellow;
background-color: yellow;
height: 40px;
width: 40px;
border-radius: 0px 50% 50%;
transition: 0.5s;
}
.c2{
border: 1px solid red;
background-color: red;
height: 40px;
width: 40px;
border-radius: 0px 50% 50%;
transition: 0.5s;
}
.c3{
border: 1px solid blue;
background-color: blue;
height: 40px;
width: 40px;
border-radius: 0px 50% 50%;
transition: 0.5s;
}
.c4{
border: 1px solid purple;
background-color: purple;
height: 40px;
width: 40px;
border-radius: 0px 50% 50%;
transition: 0.5s;
}
.c1:hover{
height: 200px;
width: 200px;
background-color: yellow;
border-radius: 0;
transition: 0.5s;
}
.c2:hover{
height: 200px;
width: 200px;
background-color: red;
border-radius: 0;
transition: 0.5s;
}
.c3:hover{
height: 200px;
width: 200px;
background-color: blue;
border-radius: 0;
transition: 0.5s;
}
.c4:hover{
height: 200px;
width: 200px;
background-color: purple;
border-radius: 0;
transition: 0.5s;
}
</style>
<body>
<div class="box1"><div class="c1"></div></div>
<div class="box2"><div class="c2"></div></div>
<div class="box3"><div class="c3"></div></div>
<div class="box4"><div class="c4"></div></div>
</body>
</html>