Meta Description" name="description" />
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Will You Be My Valentine?</title>
<style>
body {
font-family: 'Comic Sans MS', cursive, sans-serif;
margin: 0;
padding: 0;
overflow: hidden;
background: #87ceeb; /* Sky blue theme */
display: flex;
justify-content: center;
align-items: center;
flex-direction: column;
height: 100vh;
}
h1 {
font-size: 2.5rem;
color: #ff1493;
text-align: center;
margin-bottom: 20px;
}
.buttons {
position: relative;
margin-top: 20px;
}
button {
padding: 12px 24px;
font-size: 1.2rem;
border: none;
border-radius: 25px;
cursor: pointer;
margin: 10px;
transition: 0.3s;
}
#yesBtn {
background-color: #ff66a3;
color: white;
}
#noBtn {
background-color: #ffc0cb;
position: absolute;
}
.hidden {
display: none;
}
.success {
font-size: 2.5rem;
color: #ff69b4;
animation: pop 0.6s ease forwards;
text-align: center;
}
@keyframes pop {
0% { transform: scale(0.5); opacity: 0; }
100% { transform: scale(1); opacity: 1; }
}
/* Floating hearts and stickers */
.floating {
position: absolute;
width: 50px;
height: 50px;
pointer-events: none;
animation: floatUp linear infinite;
}
@keyframes floatUp {
0% { transform: translateY(100vh) rotate(0deg); opacity: 1; }
100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}
</style>
</head>
<body>
<h1 id="question">Will you be my Valentine? π</h1>
<div class="buttons" id="buttons">
<button id="yesBtn">Yes π</button>
<button id="noBtn">No π’</button>
</div>
<h1 id="successMessage" class="hidden success">
Yayyy thankk youu ashi mwehehehehe π
</h1>
<!-- Cute GIFs / Stickers -->
<img src="https://i.gifer.com/origin/1b/1b4de8d74e0b5f9a4b1aa06465b10587.gif" class="floating" style="left:10%; width:60px;">
<img src="https://i.gifer.com/origin/76/767bb26ef70d1ad2a4bff9f40f019a19.gif" class="floating" style="left:80%; width:50px;">
<img src="https://i.gifer.com/origin/1f/1f38f78d0d0c1f9dc3c33db292e0d145.gif" class="floating" style="left:50%; width:70px;">
<script>
const yesBtn = document.getElementById("yesBtn");
const noBtn = document.getElementById("noBtn");
const question = document.getElementById("question");
const buttons = document.getElementById("buttons");
const successMessage = document.getElementById("successMessage");
yesBtn.addEventListener("click", () => {
question.classList.add("hidden");
buttons.classList.add("hidden");
successMessage.classList.remove("hidden");
});
noBtn.addEventListener("mouseover", () => {
const x = Math.random() * (window.innerWidth - 100);
const y = Math.random() * (window.innerHeight - 50);
noBtn.style.left = `${x}px`;
noBtn.style.top = `${y}px`;
});
// Create random floating hearts continuously
function createHeart() {
const heart = document.createElement("img");
heart.src = "https://i.gifer.com/origin/14/147fd4986f3f903d3df7d83d99f688a5.gif";
heart.classList.add("floating");
heart.style.left = Math.random() * 100 + "%";
heart.style.width = (20 + Math.random() * 40) + "px";
heart.style.animationDuration = (3 + Math.random() * 3) + "s";
document.body.appendChild(heart);
setTimeout(() => {
heart.remove();
}, 6000);
}
setInterval(createHeart, 500);
</script>
</body>
</html>
6
2
4KB
4KB
202.0ms
260.0ms
534.0ms