How to use the smooth-scrollbar.version function in smooth-scrollbar

To help you get started, we’ve selected a few smooth-scrollbar examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github idiotWu / smooth-scrollbar / __demo__ / scripts / index.ts View on Github external
import Scrollbar from 'smooth-scrollbar';
import * as Prism from 'prismjs';
import 'prismjs/themes/prism.css';

import './monitor';
import './controller';
import '../styles/index.styl';

// for debug
(window as any).Scrollbar = Scrollbar;


(document.getElementById('version') as HTMLElement).textContent = Scrollbar.version;


Customize scrollbar in modern browsers with smooth scrolling experience.

Latest version published 9 months ago

Package Health Score

72 / 100
Full package analysis