Skip to content

Commit

Permalink
package description
Browse files Browse the repository at this point in the history
  • Loading branch information
clementroche committed Dec 28, 2024
1 parent 743ea7d commit cdcc658
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,21 +268,21 @@ prevent touch events only
By default Lenis will prevent anchor links click while scrolling, to fix that you must set `anchors: true`.

```js
new Lenis({
anchors: true
})
new Lenis({
anchors: true
})
```

You can also use `scrollTo` options.
```js
new Lenis({
anchors: {
offset: 100,
onComplete: ()=>{
console.log('scrolled to anchor')
},
new Lenis({
anchors: {
offset: 100,
onComplete: ()=>{
console.log('scrolled to anchor')
}
})
}
})
```

<br>
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"name": "lenis",
"version": "1.1.19-dev.3",
"description": "How smooth scroll should be",
"type": "module",
"sideEffects": false,
"author": "darkroom.engineering",
Expand Down

0 comments on commit cdcc658

Please sign in to comment.