Skip to content

Commit

Permalink
scroll bug fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
chaanakyaaM committed Oct 18, 2024
1 parent ce778e4 commit 6fdf0a0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1444,7 +1444,8 @@ <h3 class="name">Hemant Krishna</h3>

// Loop through each profile and add the AOS attribute
profiles.forEach((profile) => {
profile.setAttribute('data-aos', 'fade-down');
profile.setAttribute('data-aos', 'fade-up');

});


Expand Down Expand Up @@ -1481,7 +1482,9 @@ <h3 class="name">Hemant Krishna</h3>

</script>
<script>
AOS.init();
AOS.init({
once: true, // Animation occurs only once and doesn't reset when scrolling up
});
</script>

</body>
Expand Down

0 comments on commit 6fdf0a0

Please sign in to comment.