This package has been deprecated

Author message:

Moved to @smoovy/scroller

@smoovy/scroller-tween
TypeScript icon, indicating that this package has built-in type declarations

0.0.17 • Public • Published

@smoovy/scroller-tween

Version Size

A tween-based scrolling module for @smoovy/scroller-core

Installation

npm install --save @smoovy/scroller-tween

Usage

Import the tween module and expose it in your scroller:

import { Scroller } from '@smoovy/scroller-core';
import { ScrollerTweenModule } from '@smoovy/scroller-tween';

class YourScroller extends Scroller {
  get moduleCtor() {
    return ScrollerTweenModule;
  }
}

Transformers

Class Config key Options
TweenTransformer tween duration: number
easing: EasingImpl

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).

Package Sidebar

Install

npm i @smoovy/scroller-tween

Weekly Downloads

0

Version

0.0.17

License

MIT

Unpacked Size

18.5 kB

Total Files

10

Last publish

Collaborators

  • davideperozzi