1.0.5 • Published 5 months ago

@ruttwice/horizontalscroll v1.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

horizontal scroll

horizontal scroll with mouse wheel using React

Installation

Install my-project with npm

 npm i @ruttwice/horizontalscroll

how to use

import { horizontalScroll } from "@ruttwice/horizontalscroll";

//example
<div
  onWheel={(e) => horizontalScroll(e, speed)}
  //recommend speed 15
  //speed is value type number only
  //onWheel={(e) => horizontalScroll(e, 10)}
  //tag horizontal scroll ,css display:flaxbox
>
  <button>A</button>
  <button>B</button>
  <button>C</button>
  <button>D</button>
  <button>F</button>
  <button>G</button>
</div>;
1.0.5

5 months ago

1.0.4

10 months ago

1.0.3

10 months ago

1.0.2

10 months ago

1.0.1

10 months ago

1.0.0

10 months ago