fix: change Lenis easing function
This commit is contained in:
@@ -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',
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user