README
@smoovy/scroller-tween
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).