Skip to content

Commit

Permalink
remove default args from fromTo
Browse files Browse the repository at this point in the history
  • Loading branch information
feledori committed Aug 27, 2024
1 parent 8188798 commit ec9c377
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
3 changes: 2 additions & 1 deletion packages/core/playground/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ import Lenis from '../src/index.ts'
import './style.css'

document.querySelector('#app').innerHTML = new LoremIpsum().generateParagraphs(
10
30
)

const lenis = new Lenis({
autoResize: false,
// lerp: 0.9,
// virtualScroll: (e) => {
// // e.deltaY *= 10
// return !e.event.shiftKey
Expand Down
8 changes: 1 addition & 7 deletions packages/core/src/animate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,13 +75,7 @@ export class Animate {
fromTo(
from: number,
to: number,
{
lerp = 0.1,
duration = 1,
easing = (t) => t,
onStart,
onUpdate,
}: FromToOptions
{ lerp, duration, easing, onStart, onUpdate }: FromToOptions
) {
this.from = this.value = from
this.to = to
Expand Down

0 comments on commit ec9c377

Please sign in to comment.