Happy Birthday Rohit Sharma
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hitman</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<div class="glow-text-container">
<h1 class="glow-text" id="hitman-text"></h1>
</div>
<script src="./script.js"></script>
</body>
</html>
//CSS
body {
background-color: #111;
background-size: cover;
background-position: center;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.glow-text-container {
text-align: center;
}
.glow-text {
font-size: 6em;
font-family: 'Arial', sans-serif;
animation: glowing 2s linear infinite;
color: #2196f3; /* Material Blue */
}
.image-container {
display: flex;
justify-content: center;
align-items: center;
}
.hidden {
display: none;
}
@keyframes glowing {
0% {
text-shadow: 0 0 10px #2196f3, 0 0 20px #2196f3, 0 0 30px #2196f3, 0 0 40px #2196f3, 0 0 50px #2196f3, 0 0 60px #2196f3, 0 0 70px #2196f3;
}
50% {
text-shadow: none;
}
100% {
text-shadow: 0 0 10px #2196f3, 0 0 20px #2196f3, 0 0 30px #2196f3, 0 0 40px #2196f3, 0 0 50px #2196f3, 0 0 60px #2196f3, 0 0 70px #2196f3;
}
}
//JS
document.addEventListener("DOMContentLoaded", function() {
const textElement = document.getElementById('hitman-text');
const textContent = "Happy Birthday Hitman";
let index = 0;
function typeText() {
textElement.textContent += textContent[index];
index++;
if (index < textContent.length) {
setTimeout(typeText, 100); // Adjust typing speed here (in milliseconds)
}
}
typeText();
});
Comments
Post a Comment