Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sveltejs/svelte-scroller

Package Overview
Dependencies
Maintainers
3
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sveltejs/svelte-scroller - npm Package Compare versions

Comparing version 2.0.0-alpha.2 to 2.0.0

4

CHANGELOG.md
# svelte-scroller changelog
## 2.0.0
* Update for Svelte 3
## 1.0.5

@@ -4,0 +8,0 @@

2

package.json
{
"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 &lt;slot&gt;](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 &lt;slot&gt;](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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc