Skip to content

Commit

Permalink
v1.1.0 build
Browse files Browse the repository at this point in the history
  • Loading branch information
clementroche committed May 30, 2024
1 parent 8f4d700 commit c81f4b6
Show file tree
Hide file tree
Showing 14 changed files with 193 additions and 78 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import Lenis from 'lenis'
using scripts:

```html
<script src="https://unpkg.com/lenis@1.0.45/dist/lenis.min.js"></script>
<script src="https://unpkg.com/lenis@1.1.0/dist/lenis.min.js"></script>
```


Expand Down
2 changes: 1 addition & 1 deletion dist/lenis.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/lenis.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/lenis.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/lenis.mjs

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/lenis.mjs.map

Large diffs are not rendered by default.

8 changes: 0 additions & 8 deletions packages/snap/dist/index.d.ts

This file was deleted.

28 changes: 24 additions & 4 deletions packages/snap/dist/lenis-snap.d.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,30 @@
declare class Snap {
constructor(lenis: any);
constructor(lenis: any, { type, lerp, easing, duration, velocityThreshold, onSnapStart, onSnapComplete, }?: {
type?: string;
lerp: any;
easing: any;
duration: any;
velocityThreshold?: number;
onSnapStart: any;
onSnapComplete: any;
});
destroy(): void;
add(element: any, options?: {}): void;
remove(element: any): void;
start(): void;
stop(): void;
add(value: any): () => void;
remove(id: any): void;
addElement(element: any, options?: {}): () => void;
removeElement(id: any): void;
onWindowResize: () => void;
onScroll: (e: any) => void;
onScroll: ({ scroll, limit, lastVelocity, velocity, isScrolling, isTouching, userData, }: {
scroll: any;
limit: any;
lastVelocity: any;
velocity: any;
isScrolling: any;
isTouching: any;
userData: any;
}) => void;
}

export { Snap as default };
213 changes: 158 additions & 55 deletions packages/snap/dist/lenis-snap.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c81f4b6

Please sign in to comment.