-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
258 lines (244 loc) · 11.4 KB
/
index.html
File metadata and controls
258 lines (244 loc) · 11.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="title" content="Happy Birthday Website 2.0 | Aoudumber Bade">
<meta name="github" content="https://github.com/Aoudumber-Bade">
<title>Atharvi Birthday</title>
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"
integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link
href="https://fonts.googleapis.com/css2?family=Dancing+Script:wght@500;700&family=Poppins:wght@400;600&display=swap"
rel="stylesheet">
<script src="https://code.jquery.com/jquery-3.7.1.min.js"
integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=" crossorigin="anonymous"></script>
</head>
<body>
<div id="wrapper">
<div class="flag__birthday">
<img src="./images/1.png" alt="" width="350" class="flag__left">
<img src="./images/1.png" alt="" width="350" class="flag__right">
</div>
<div class="content">
<div class="left">
<div class="title">
<h1 class="happy">
<span style="--t: 4s;">H</span>
<span style="--t: 4.2s;">a</span>
<span style="--t: 4.4s;">p</span>
<span style="--t: 4.6s;">p</span>
<span style="--t: 4.8s;">y</span>
</h1>
<h1 class="birthday">
<span style="--t: 5s;">B</span>
<span style="--t: 5.2s;">i</span>
<span style="--t: 5.4s;">r</span>
<span style="--t: 5.6s;">t</span>
<span style="--t: 5.8s;">h</span>
<span style="--t: 6s;">d</span>
<span style="--t: 6.2s;">a</span>
<span style="--t: 6.4s;">y</span>
</h1>
<div class="hat">
<img src="./images/hat.png" alt="" width="130">
</div>
</div>
<div class="date__of__birth">
<span></span>
</div>
<div class="btn">
<button id="btn__letter">
<div class="mail">
Click Here Atharvi
<i class="fa-regular fa-envelope"></i>
</div>
</button>
</div>
</div>
<div class="right">
<div class="box__account">
<div class="image">
<img src="./images/unnamed.png" alt="">
</div>
<div class="name">
<i class="fa-solid fa-heart"></i>
<span>Dear Atharvi</span>
<i class="fa-solid fa-heart"></i>
</div>
<div class="balloon_one">
<img width="100px" src="./images/balloon1.png" alt="">
</div>
<div class="balloon_two">
<img width="100px" src="./images/balloon2.png" alt="">
</div>
</div>
<div class="cricle">
<div class="text__cricle">
<span style="--i: 1;">h</span>
<span style="--i: 2;">a</span>
<span style="--i: 3;">p</span>
<span style="--i: 4;">p</span>
<span style="--i: 5;">y</span>
<span style="--i: 6;">-</span>
<span style="--i: 7;">b</span>
<span style="--i: 8;">i</span>
<span style="--i: 9;">r</span>
<span style="--i: 10;">t</span>
<span style="--i: 11;">h</span>
<span style="--i: 12;">d</span>
<span style="--i: 13;">a</span>
<span style="--i: 14;">y</span>
<span style="--i: 15;">-</span>
</div>
<i class="fa-solid fa-heart"></i>
</div>
</div>
</div>
<div class="decorate_star star1" style="--t: 15s;"></div>
<div class="decorate_star star2" style="--t: 15.2s;"></div>
<div class="decorate_star star3" style="--t: 15.4s;"></div>
<div class="decorate_star star4" style="--t: 15.6s;"></div>
<div class="decorate_star star5" style="--t: 15.8s;"></div>
<div class="decorate_flower--one" style="--t: 15s;">
<img width="20" src="./images/decorate_flower.png" alt="">
</div>
<div class="decorate_flower--two" style="--t: 15.3s;">
<img width="20" src="./images/decorate_flower.png" alt="">
</div>
<div class="decorate_flower--three" style="--t: 15.6s;">
<img width="20" src="./images/decorate_flower.png" alt="">
</div>
<div class="decorate_bottom">
<img src="./images/decorate.png" alt="" width="100">
</div>
<div class="smiley__icon">
<img src="./images/smiley_icon.png" alt="" width="100">
</div>
<div class="boxMail">
<i class="fa-solid fa-xmark"></i>
<div class="boxMail-container">
<div class="card1">
<div class="userImg">
<img src="images/unnamed.png" alt="">
</div>
<h4 class="username">To: Atharvi 💖<span class="underline"></span></h4>
<h3>Happy Birthday</h3>
<div class="imageCute">
<img src="cute1.png" alt="">
</div>
</div>
<div class="card2">
<div class="card2-content">
<h3>Happy Birthday, Atharvi </h3>
<h2>The day you came into my life, I didn't realize how much you would come to mean to me. But day by day, you grew so close to my heart,You’re not just my girlfriend; you’re my whole world. Please remember that I’m always right here by your side—you can talk to me anytime about anything, especially those things you feel you can't share with anyone else.
I hope this year all your dreams come true, and I'll be right there to help you reach them. and sending you all the love he would want you to feel today. 🎈🎂🎈Don't be sad, my beautiful Atharvi.
</h2>
<div class="imageCute2">
<img src="cute2.png" alt="">
</div>
</div>
</div>
</div>
</div>
</div>
</body>
<script>
let datetxt = "16 May";
let datatxtletter = "My love. You are a very special girl. I always silently thank you for coming into my life. Today, I wish you all the best, lots of health, and lots of joy. I always hope we will celebrate many more birthdays like this together. Happy birthday to you.💕";
let titleLetter = "To you";
let charArrDate = datetxt.split('');
let charArrDateLetter = datatxtletter.split('');
let charArrTitle = titleLetter.split('');
let currentIndex = 0;
let currentIndexLetter = 0;
let currentIndexTitle = 0;
let date__of__birth = document.querySelector(".date__of__birth span");
let text__letter = document.querySelector(".text__letter p");
setTimeout(function () {
timeDatetxt = setInterval(function () {
if (currentIndex < charArrDate.length) {
date__of__birth.textContent += charArrDate[currentIndex];
currentIndex++;
}
else {
let i = document.createElement("i");
i.className = "fa-solid fa-star"
document.querySelector(".date__of__birth").prepend(i)
document.querySelector(".date__of__birth").appendChild(i.cloneNode(true))
clearInterval(timeDatetxt)
}
}, 100)
}, 12000)
var intervalContent;
var intervalTitle;
$("#btn__letter").on("click", function () {
$(".box__letter").slideDown()
setTimeout(function () {
$(".letter__border").slideDown();
}, 1000)
setTimeout(function () {
intervalTitle = setInterval(function () {
if (currentIndexTitle < charArrTitle.length) {
document.querySelector(".title__letter").textContent += charArrTitle[currentIndexTitle];
let i = document.createElement("i");
i.className = "fa-solid fa-heart"
document.querySelector(".title__letter").appendChild(i)
currentIndexTitle++;
}
else {
clearInterval(intervalTitle)
}
}, 100)
}, 2000)
setTimeout(function () {
document.querySelector("#heart__letter").classList.add("animationOp");
document.querySelector(".love__img").classList.add("animationOp");
document.querySelector("#mewmew").classList.add("animationOp");
}, 2800)
setTimeout(function () {
document.querySelectorAll(".heart").forEach((item) => {
item.classList.add("animation")
})
}, 3500)
setTimeout(function () {
intervalContent = setInterval(function () {
if (currentIndexLetter < charArrDateLetter.length) {
text__letter.textContent += charArrDateLetter[currentIndexLetter];
currentIndexLetter++;
}
else {
clearInterval(intervalContent)
}
}, 50)
}, 6000)
})
$(".close").on("click", function () {
clearInterval(intervalContent)
document.querySelector(".title__letter").textContent = "";
text__letter.textContent = "";
currentIndexLetter = 0
currentIndexTitle = 0
document.querySelector("#heart__letter").classList.remove("animationOp");
document.querySelector(".love__img").classList.remove("animationOp");
document.querySelector("#mewmew").classList.remove("animationOp");
document.querySelectorAll(".heart").forEach((item) => {
item.classList.remove("animation")
})
$(".box__letter").slideUp();
$(".letter__border").slideUp();
})
let mailBox = document.querySelector('.mail')
let boxmail = document.querySelector('.boxMail')
var close = document.querySelector('.fa-xmark')
mailBox.onclick = function () {
mailBox.classList.toggle('active')
boxmail.classList.add('active')
}
close.addEventListener('click', function () {
boxmail.classList.remove('active')
})
</script>
</html>