0.2.0 • Published 9 months ago

@djx/scroller v0.2.0

Weekly downloads
103
License
ISC
Repository
-
Last release
9 months ago

@djx/scroller

Scroller built with @smoovy/scroller

Installation

npm install --save @djx/scroller

Usage

Make sure you import the component somewehere in your application first:

import '@djx/scroller';

You can then use it like normal web components in your markup:

<djx-scroller intertia="0.095">
  <div>Scrollable content</div>
  <div>Scrollable content</div>
  <div>Scrollable content</div>
  <div>Scrollable content</div>
</djx-scroller>

Events

NameDetailDescription
scrollCoordinateAnimated position
virtualCoordinateAnticipated position

Properties

NameTypeDescriptionDefaultRequired
inertiafloatThe lerp modifier for each cycle0.12No
0.2.0

9 months ago

0.1.7

1 year ago

0.1.6

1 year ago

0.1.2

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.5

1 year ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.10

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago