This is a tool which makes scroll-container auto scroll to the bottom easy.
This is a tool which makes scroll-container auto scroll to the bottom easy.
``bash`
yarn add @yrobot/auto-scroll
`ts`
import autoScroll from "@yrobot/auto-scroll";
autoScroll({ selector: "#scroll-container-id" });
`html`
- [✓] The subtree children list length increase
- [✓] The direct child element height increase
> es
`ts
import autoScroll, { escapeWhenUpPlugin } from "@yrobot/auto-scroll";
autoScroll({
selector: "#scroll-container-id",
plugins: [escapeWhenUpPlugin()],
});
`
> iife
`ts`
autoScroll.default({
selector: "#scroll-container-id",
plugins: [autoScroll.escapeWhenUpPlugin()],
});