fix: change Lenis easing function

This commit is contained in:
2023-05-26 23:49:59 +02:00
parent d991dad294
commit 219794641f

View File

@@ -11,7 +11,7 @@
if (browser) { if (browser) {
$smoothScroll = new Lenis({ $smoothScroll = new Lenis({
duration: 1.2, duration: 1.2,
easing: (t: number) => (t === 1 ? 1 : 1 - Math.pow(2, -10 * t)), // https://easings.net/ easing: (t: number) => Math.min(1, 1.001 - Math.pow(2, -10 * t)), // https://easings.net/
smoothWheel: true, smoothWheel: true,
orientation: 'vertical', orientation: 'vertical',
}) })