Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://unpkg.com/lenis@1.3.11/dist/lenis.css">

<!-- Firebase -->
<script src="https://www.gstatic.com/firebasejs/ui/9.6.2/firebase-ui-auth.js"></script>
Expand Down Expand Up @@ -174,6 +175,7 @@
</div>
</section>

<script src="https://unpkg.com/lenis@1.3.11/dist/lenis.min.js"></script>
<!-- JavaScript for smooth scrolling when arrow clicked -->
<script>
document.getElementById('scroll-down').addEventListener('click', function (e) {
Expand All @@ -182,6 +184,15 @@
document.getElementById('info').scrollIntoView({ behavior: 'smooth' });
}, 500);
});
// Initialize Lenis
const lenis = new Lenis({
autoRaf: true,
});

// Listen for the scroll event and log the event data
lenis.on('scroll', (e) => {
console.log(e);
});
</script>
</body>

Expand Down