File tree Expand file tree Collapse file tree 2 files changed +13
-1
lines changed
Expand file tree Collapse file tree 2 files changed +13
-1
lines changed Original file line number Diff line number Diff 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 >
Original file line number Diff line number Diff line change 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+ } ) ;
You can’t perform that action at this time.
0 commit comments