DileSmoothScrollMixin
This Mixin includes all methods related to scroll the entire document area. These are:
- smoothScrollToTop
- smoothScrollToBottom
- smoothScroll
- smoothScrollBy
- smoothScrollElementIntoView
To use the mixin in a Web Component you need to extend your component with the mixin:
import { DileSmoothScrollMixin } from '@dile/dile-smooth-scroll/DileSmoothScrollMixin';
class MyOwnComponent extends DileSmoothScrollMixin(LitElement) {
// code of your own component
}