fix: change Lenis parameters from newer versions

This commit is contained in:
2023-03-28 23:18:43 +02:00
parent 212e31b4cf
commit faec58467e

View File

@@ -12,8 +12,8 @@
$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) => (t === 1 ? 1 : 1 - Math.pow(2, -10 * t)), // https://easings.net/
smooth: true, smoothWheel: true,
direction: 'vertical', orientation: 'vertical',
}) })
} }