-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
89 lines (76 loc) · 1.87 KB
/
index.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
# Lecture-2
<!DOCTYPE html>
<html>
<head>
<title>Lecture 2</title>
<style type="text/css">
h1{
color:black;
}
div{
font-size: 25px;
text-align: center;
/* vertical-align: middle; */
line-height: 140px;
}
h2 {
height: 80px;
width: 80px;
/* border-radius: 50%; */
background-color: red;
/* border: 10px solid black; */
/* font-weight: bold; */
font-size: 0.80em;
text-align: center;
/* vertical-align: middle; */
color: yellow;
line-height: 80px;
border-radius: 100%;
transition: background 0.3s ease;
}
.hello {
background-color: aqua;
height: 150px;
width: 150px;
}
.world {
background-color:hsla(0, 50%, 50%);
height: 100%;
width: 100%;
transition: background 0.3s ease;
}
.hello:hover .world{
background:pink;
}
.hover:hover{
background:purple;
}
.Switches {
background-color:gold;
height: 100px;
width: 200px;
line-height: 100px;
/* border: 10px solid black; */
}
.Switches2 {
background-color:blue;
height:100%;
width:50%;
line-height: 100px;
}
.Switches:hover .Switches2 {
transform: translateX(100%);
}
</style>
</head>
<body>
<h1>Lecture 2 - Transitions</h1>
<div class="hello">
<div class="world"> Button</div>
</div>
<h2 class="hover"> Click! </h2>
<div class="Switches">
<div class="Switches2"> Switches </div>
</div>
</body>
</html>