DileSmoothScrollElement
This mixin implements the methods to scroll the content of a element with it's own scrolling section.
The methods included in it are:
- smoothElementScrollTop
- smoothElementScrollBottom
- smoothElementScroll
- smoothElementScrollBy
Installation
npm install @dile/utils
Usage
import { DileSmoothScrollElement } from "@dile/utils/mixins/smooth-scroll";
class NewComponent extends DileSmoothScrollElemen(LitElement) {
}