0.0.17 • Published 5 years ago

@smoovy/scroller-shared v0.0.17

Weekly downloads
16
License
MIT
Repository
github
Last release
5 years ago

@smoovy/scroller-shared

Version Size

Some base components for a basic scroller.

Installation

npm install --save @smoovy/scroller-shared

Usage

Choose the component you want to add to your scroller module and simply include it. E.g.:

import { MouseWheelInput } from '@smoovy/scroller-shared';

Inputs

ClassConfig keyOptions
MouseWheelInputmouseWheeltarget: HTMLElementmultiplier: numbermultiplierFirefox: number
TouchSwipeInputtouchSwipetarget: HTMLElementmultiplier: number

Transformers

ClassConfig keyOptions
ClampTransformerclamp-

Outputs

ClassConfig keyOptions
CssTransformOutputcssTransformsectionSelector: stringsectionPadding: numberfirefoxFix: boolean

Modularity

To reduce the final bundle size even more, you can only import the components you're really using. E.g.:

import { MouseWheelInput } from '@smoovy/scroller-shared/m/inputs/mouse-wheel-input';

Development commands

// Serve with parcel
npm run serve

// Build with rollup
npm run build

// Run Jest unit tests
npm run test

// Run TSLinter
npm run lint

License

See the LICENSE file for license rights and limitations (MIT).

0.0.17

5 years ago

0.0.16

5 years ago

0.0.15

5 years ago

0.0.14

5 years ago

0.0.13

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.8

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago