Skip to content

Commit

Permalink
docs: update svelte-easing link and add example of use inside compo…
Browse files Browse the repository at this point in the history
…nent
  • Loading branch information
valmisson committed Dec 3, 2024
1 parent f2fde2a commit 0e687ce
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ yarn add svelte-scrolling
<section id="about"></section>
<section use:scrollRef={'blog'}></section>

<button on:click={() => scrollTop()}>Go to top</button>
<ScrollTop>
<button on:click={() => scrollTop()}>Go to top</button>
</ScrollTop>
```

## Actions
Expand Down Expand Up @@ -107,4 +109,4 @@ Copyright (c) 2021-present, Valmisson Grizorte

[npm-shields]: https://img.shields.io/npm/v/svelte-scrolling.svg
[license-shields]: https://img.shields.io/badge/license-MIT-green
[svelte-easing]: https://svelte.dev/docs#svelte_easing
[svelte-easing]: https://svelte.dev/docs/svelte/svelte-easing

0 comments on commit 0e687ce

Please sign in to comment.