Skip to content

Commit

Permalink
Flickering Neon Sign (#2695)
Browse files Browse the repository at this point in the history
* Create index.html

* Add files via upload
  • Loading branch information
SagarVerma893 authored Oct 7, 2024
1 parent 86278e9 commit 1457678
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
14 changes: 14 additions & 0 deletions Art/SagarVerma893-Flickering Neon Sign/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Flickering Neon Sign</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="neon-sign">
<h1>Hacktoberfest 2024</h1>
</div>
</body>
</html>
45 changes: 45 additions & 0 deletions Art/SagarVerma893-Flickering Neon Sign/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
@import url('https://fonts.googleapis.com/css2?family=Monoton&display=swap');

body {
background-color: #000;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}

.neon-sign h1 {
font-family: 'Monoton', cursive;
font-size: 100px;
color: #00FF00;
text-shadow:
0 0 5px #00FF00,
0 0 10px #00FF00,
0 0 20px #00FF00,
0 0 40px #00FF00,
0 0 80px #00FF00,
0 0 100px #00FF00;
animation: flicker 2s infinite;
}

@keyframes flicker {
0%, 19%, 21%, 23%, 25%, 54%, 56%, 100% {
opacity: 1;
text-shadow:
0 0 5px #00FF00,
0 0 10px #00FF00,
0 0 20px #00FF00,
0 0 40px #00FF00,
0 0 80px #00FF00,
0 0 100px #00FF00;
}
20%, 24%, 55% {
opacity: 0.5;
text-shadow: none;
}
22% {
opacity: 0.2;
text-shadow: none;
}
}

0 comments on commit 1457678

Please sign in to comment.