tg-me.com/programercity/1637
Create:
Last Update:
Last Update:
کدش اینجاست:👇
<!DOCTYPE html>
<html lang="fa">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>لیلوش</title>
<style>
body {
font-family: 'Arial', sans-serif;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: linear-gradient(135deg, #ff758c, #ff7eb3);
color: white;
text-align: center;
}
.container {
background: rgba(255, 255, 255, 0.2);
border-radius: 20px;
padding: 20px 30px;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}
.quote {
font-size: 1.8em;
line-height: 1.5;
opacity: 0;
transition: opacity 1s ease-in-out;
}
.quote.visible {
opacity: 1;
}
.heart {
font-size: 2em;
margin: 10px 0;
animation: heartbeat 1.5s infinite;
}
@keyframes heartbeat {
0%, 100% { transform: scale(1); }
50% { transform: scale(1.2); }
}
</style>
</head>
<body>
<div class="container">
<div class="quote" id="quote">در انتظار جملات عاشقانه...</div>
<div class="heart">❤️</div>
</div>
<script>
const quotes = [
"تو دلیل لبخندهای منی.",
"با تو جهان زیباتر است.",
"هر لحظه با تو یک معجزه است.",
"تو در قلب من جاودانی هستی.",
"هرگز از دوست داشتنت دست نمیکشم."
];
let index = 0;
const quoteElement = document.getElementById('quote');
function showNextQuote() {
quoteElement.classList.remove('visible');
setTimeout(() => {
quoteElement.textContent = quotes[index];
index = (index + 1) % quotes.length;
quoteElement.classList.add('visible');
}, 1000);
}
setInterval(showNextQuote, 4000);
showNextQuote();
</script>
</body>
</html>
━━━━━━━━━━━━━━━━━━
°⋆⸜ 𝙋𝙧𝙤𝙜𝙧𝙖𝙢𝙢𝙚𝙧'𝙨 𝘾𝙞𝙩𝙮 ⸝⋆°
➤ Code • Learn • Build
➤ @programercity
━━━━━━━━━━━━━━━━━━
BY Programmer City «شهر برنامهنویس»
Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283
Share with your friend now:
tg-me.com/programercity/1637