-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
35 lines (34 loc) · 1.26 KB
/
index.html
File metadata and controls
35 lines (34 loc) · 1.26 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CSS Envelope + Letter (Open/Close on Click)</title>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<div class="container">
<div class="envelope-wrapper">
<div class="envelope">
<div class="letter">
<div class="text">
<strong>Dear dear my lovey.</strong>
<p>
Happy 18th Monthsary, love! ❤️
I just want to say I love you so much and thank you for being such a wonderful partner. I’m so happy with you, and I pray God keeps guiding us on the right path. I love you so much and thank you for having me 💕
</p>
</div>
</div>
</div>
<div class="heart"></div>
</div>
</div>
<script>
const envelope = document.querySelector('.envelope-wrapper');
envelope.addEventListener('click', () => {
envelope.classList.toggle('flap');
});
</script>
</body>
</html>