-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfullscreenoverlay.html
132 lines (128 loc) · 2.32 KB
/
fullscreenoverlay.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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<!DOCTYPE html>
<html>
<head>
<!-- <link href="https://fonts.googleapis.com/css?family=Anton&display=swap" rel="stylesheet"> -->
<style>
body{
background-color:#6C11E7;
margin:0px;
padding:0px;
font-family: 'Chilanka', cursive;
}
.fillers{
position:absolute;
top:50%;
left:50%;
transform: translate(-50%,-50%);
color:white;
text-align:center;
}
.overlay{
position:absolute;
background:#DAF7A6;
height:100%;
width:100%;
text-align: center;
width:0px;
overflow:hidden;
transition:all 0.4s ease;
}
.overlay nav a{
text-decoration:none;
color:#151723;
font-size: 30px;
height:70px;
display:block;
font-weight:bold;
transition: all 0.4s ease;
}
.overlay nav a:hover{
color:Black;
font-weight: bolder;
font-size:35px;
}
nav{
position:absolute;
top:50%;
left:50%;
transform: translate(-50%, -50%);
}
.ham-menu div{
width: 30px;
height: 5px;
margin-bottom: 4px;
background: black;
border-radius: 3px;
}
.ham-menu{
cursor: pointer;
}
.ham-menu{
background-color: red;
}
.container{
padding:9px;
padding-bottom: 3px;
width:30px;
height:30px;
background-color:#2FC2FD;
border-radius:45%;
box-shadow: 2px 2px 4px 2px #221E27;
cursor: pointer;
position:relative;
left:50%;
transform: translateX(-50%);
}
.container:hover{
background-color: #2F51FD;
}
.container:hover >.ham-menu>div{
background-color:white;
}
#radio1:checked ~ .overlay{
width:100%;
}
.cross{
font-size: 40px;
font-weight:bold;
float:right;
margin:50px 150px;
cursor:pointer;
transition:all 0.3s ease;
}
.cross:hover{
font-size:45px;
color:Red;
}
input[type="radio"]{
display:none;
}
</style>
</head>
<body>
<input type="radio" name="toggle" id="radio1">
<div class="fillers">
<h2>W3Codepen</h2>
<h3>A place to Nurture Your Web Skills</h3>
<h1>Full Screen OverLay tutorial</h1>
<div class="container">
<label for="radio1" class="ham-menu">
<div></div>
<div></div>
<div></div>
</label>
</div>
</div>
<div class="overlay">
<input type="radio" name="toggle" id="radio2">
<label for="radio2" class="cross">X</label>
<nav>
<a href="#">Home</a>
<a href="#">HTML</a>
<a href="#">CSS</a>
<a href="#">JavaScript</a>
<a href="#">About</a>
</nav>
</div>
</body>
</html>