@sveltejs/svelte-scroller
Advanced tools
Comparing version 2.0.0-alpha.2 to 2.0.0
# svelte-scroller changelog | ||
## 2.0.0 | ||
* Update for Svelte 3 | ||
## 1.0.5 | ||
@@ -4,0 +8,0 @@ |
{ | ||
"name": "@sveltejs/svelte-scroller", | ||
"version": "2.0.0-alpha.2", | ||
"version": "2.0.0", | ||
"description": "A <Scroller> component for Svelte apps", | ||
@@ -5,0 +5,0 @@ "svelte": "Scroller.svelte", |
@@ -1,2 +0,2 @@ | ||
# svelte-scroller ([demo](https://v3.svelte.technology/repl?version=3.0.0-beta.21&gist=76846b7ae27b3a21becb64ffd6e9d4a6)) | ||
# svelte-scroller ([demo](https://svelte.dev/repl/76846b7ae27b3a21becb64ffd6e9d4a6?version=3)) | ||
@@ -41,3 +41,3 @@ A scroller component for Svelte apps. | ||
You must have one `slot="background` element and one `slot="foreground"` element — see [composing with <slot>](https://svelte.technology/guide#composing-with-slot) for more info. | ||
You must have one `slot="background"` element and one `slot="foreground"` element — see [composing with <slot>](https://svelte.dev/tutorial/slots) for more info. | ||
@@ -67,3 +67,3 @@ | ||
You can rename them with e.g. `bind:index=i`. | ||
You can rename them with e.g. `bind:index={i}`. | ||
@@ -80,24 +80,4 @@ | ||
## Using without Svelte | ||
You can also use `<Scroller>` in a non-Svelte app: | ||
```js | ||
import Scroller from '@sveltejs/svelte-scroller'; | ||
const background = document.createElement('div'); | ||
background.innerHTML = someHTML; | ||
const foreground = document.createElement('div'); | ||
foreground.innerHTML = someMoreHTML; | ||
const scroller = new Scroller({ | ||
target: document.querySelector('#scroller-target'), | ||
data: { top: 0.1, bottom: 0.9 }, | ||
slots: { background, foreground } | ||
}); | ||
``` | ||
## License | ||
[LIL](LICENSE) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1
11250
81