luna-scrollbar
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

Luna Scrollbar

Custom scrollbar.

Demo

https://luna.liriliri.io/?path=/story/scrollbar

Install

Add the following script and style to your page.

<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/luna-scrollbar/luna-scrollbar.css" />
<script src="//cdn.jsdelivr.net/npm/luna-scrollbar/luna-scrollbar.js"></script>

You can also get it on npm.

npm install luna-scrollbar --save
import 'luna-scrollbar/luna-scrollbar.css'
import LunaScrollbar from 'luna-scrollbar'

Usage

const scrollbar = new LunaScrollbar(container)
scollbar.getContent().innerHTML = 'test'

Api

getContent(): HTMLElement

Get content element.

Readme

Keywords

Package Sidebar

Install

npm i luna-scrollbar

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

197 kB

Total Files

12

Last publish

Collaborators

  • surunzi