Nurturing Palpable Magnificence
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

This package has been deprecated

Author message:

Moved to @smoovy/scroller

@smoovy/scroller-shared

0.0.17 • Public • Published

@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

Class Config key Options
MouseWheelInput mouseWheel target: HTMLElement
multiplier: number
multiplierFirefox: number
TouchSwipeInput touchSwipe target: HTMLElement
multiplier: number

Transformers

Class Config key Options
ClampTransformer clamp -

Outputs

Class Config key Options
CssTransformOutput cssTransform sectionSelector: string
sectionPadding: number
firefoxFix: 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).

Install

npm i @smoovy/scroller-shared

DownloadsWeekly Downloads

6

Version

0.0.17

License

MIT

Unpacked Size

61.1 kB

Total Files

16

Last publish

Collaborators

  • avatar