-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCSS-aspect-ratio-neon-effect.html
42 lines (42 loc) · 1.13 KB
/
CSS-aspect-ratio-neon-effect.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>CSS Aspect-Ratio & Neon Effect</title>
<style>
.wrapper {
width: 100vw;
height: 100vh;
display: grid;
place-items: center;
background: steelblue;
}
.box {
width: 600px;
height: 0;
padding-bottom: calc(600px * 9 / 16); /*Aspect Ratio:16/9*/
background: black;
box-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff, 0 0 20px #49ff18,
0 0 30px #49ff18, 0 0 40px #49ff18, 0 0 55px #49ff18, 0 0 75px #49ff18;
}
.box h1 {
color: white;
text-align: center;
margin-top: 150px;
font-size: 3rem;
letter-spacing: 5px;
text-shadow: 0 0 5px #fff, 0 0 10px #fff, 0 0 15px #fff,
0 0 20px #49ff18, 0 0 30px #49ff18, 0 0 40px #49ff18, 0 0 55px #49ff18,
0 0 75px #49ff18;
}
</style>
</head>
<body>
<div class="wrapper">
<div class="box">
<h1>Pain</h1>
</div>
</div>
</body>
</html>