Skip to content

Commit 1dd9080

Browse files
menambahkan
1 parent 5714c3f commit 1dd9080

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ <h3>Aplikasi To-Do List</h3>
3535
</section>
3636
<section id="contact" class="slide-up">
3737
<h2>Kontak</h2>
38-
<p>Email: namaanda@email.com</p>
38+
<p>Email: Kamalputra1177@email.com</p>
39+
<p>Telepon: 082122339125</p>
3940
<p>LinkedIn: linkedin.com/in/namaanda</p>
4041
</section>
4142
<script src="script.js"></script>

script.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
document.addEventListener("DOMContentLoaded", function() {
2+
let elements = document.querySelectorAll(".slide-up");
3+
let observer = new IntersectionObserver(entries => {
4+
entries.forEach(entry => {
5+
if (entry.isIntersecting) {
6+
entry.target.classList.add("visible");
7+
}
8+
});
9+
}, { threshold: 0.5 });
10+
elements.forEach(el => observer.observe(el));
11+
});

0 commit comments

Comments
 (0)