1.0.5 • Published 2 years ago

@ruttwice/horizontalscroll v1.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years 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

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago