bonaparte-scroll

0.0.36 • Public • Published

< bonaparte-scroll >

npm version

The scroll component is used to implement scrolling in a container.

Note: Currently only supports vertical scrolling.

Examples

Structure

<!-- Position relative to parent element. Parent must not be position:static. -->
<bonaparte-scroll
  scrollbar
>
  <1st-child> <!-- scrolling content -->
 
</bonaparte-scroll>

<1st-child> Scrolling content

Content that will be scrolled.

Attributes

scrollbar

Allows the button to restore the targets state when clicked a second time.

  • Default hover
  • Values
    • hover: Scroll bar is only visible if the user hover over the scrollable area.
    • visible: Scroll bar is always visible.
    • hidden: Scroll bar is never visible.
    • native: The native scroll bar will not be replaced and is visible.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.0.362latest

Version History

VersionDownloads (Last 7 Days)Published
0.0.362
0.0.350
0.0.310
0.0.300
0.0.290
0.0.260
0.0.240
0.0.230
0.0.200
0.0.70
0.0.60
0.0.40
0.0.10

Package Sidebar

Install

npm i bonaparte-scroll

Homepage

bonaparte.io

Weekly Downloads

2

Version

0.0.36

License

ISC

Last publish

Collaborators

  • greenish