Meta Description" name="description" />
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Happy Birthday Anitha π</title>
<style>
body{
margin:0;
font-family:Arial;
text-align:center;
background:linear-gradient(120deg,#ff9a9e,#fad0c4);
color:white;
overflow:hidden;
}
/* Heading */
h1{
margin-top:40px;
font-size:50px;
animation: glow 2s infinite alternate;
}
h2{
font-size:35px;
margin-top:-10px;
}
@keyframes glow{
from{ text-shadow:0 0 10px white; }
to{ text-shadow:0 0 30px yellow; }
}
/* Image */
img{
width:220px;
border-radius:20px;
margin-top:20px;
box-shadow:0 0 20px white;
}
/* Cake */
.cake{
font-size:100px;
margin-top:30px;
animation:bounce 2s infinite;
}
@keyframes bounce{
0%{transform:translateY(0);}
50%{transform:translateY(-20px);}
100%{transform:translateY(0);}
}
/* Button */
button{
padding:15px 30px;
font-size:20px;
border:none;
border-radius:10px;
background:#ff4081;
color:white;
cursor:pointer;
margin-top:20px;
z-index:5;
position:relative;
}
button:hover{
background:#e91e63;
}
/* Message */
#message{
font-size:28px;
margin-top:25px;
display:none;
font-weight:bold;
}
/* Fireworks */
.firework{
position:absolute;
width:8px;
height:8px;
background:white;
border-radius:50%;
animation:explode 1.2s linear forwards;
}
@keyframes explode{
0%{transform:scale(1);opacity:1;}
100%{transform:scale(18);opacity:0;}
}
</style>
</head>
<body>
<h1>π Happy Birthday π</h1>
<h2>BESTIE ππ«</h2>
<h1>ANITHA</h1>
<img src="anitha.jpg" alt="Anitha Photo">
<div class="cake">π</div>
<button onclick="showWish()">Click for Surprise π</button>
<p id="message">
π Happy Birthday Anitha ππ« <br><br>
STAY HAPPY π <br>
LIFE LONG HAPPINESS π₯³
</p>
<script>
function showWish(){
document.getElementById("message").style.display="block";
/* continuous fireworks */
setInterval(createFireworks,800);
}
function createFireworks(){
for(let i=0;i<25;i++){
let fire=document.createElement("div");
fire.className="firework";
fire.style.left=Math.random()*window.innerWidth+"px";
fire.style.top=Math.random()*window.innerHeight+"px";
document.body.appendChild(fire);
setTimeout(()=>{
fire.remove();
},1200);
}
}
</script>
</body>
</html>2
1
2KB
3KB
129.0ms
220.0ms
129.0ms