Skip to content

Commit 8fff7d5

Browse files
authored
fix(easing): changed duration & easing to match ff (#58)
* fix(easing): changed duration & easing to match ff * Sync with Prettier
1 parent 2b09635 commit 8fff7d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ function smoothScroll(
4545
el,
4646
x,
4747
y,
48-
duration = 300,
49-
ease = t => 0.5 * (1 - Math.cos(Math.PI * t)),
48+
duration = 450,
49+
ease = t => 1 + --t * t * t * t * t,
5050
cb
5151
) {
5252
let scrollable

0 commit comments

Comments
 (0)