Home

Awesome

<div align="center"> <h1>Nyanyanyanyanyanyanya! 🙀</h1> Nyan Cat React Custom Scroll Bar <br/> <img src="./assets/cat.gif" alt="Cat!" height="80" align="center"/> <br/> <a href="https://www.npmjs.com/package/react-nyan-stroller"> <img src="https://img.shields.io/npm/v/react-nyan-stroller.svg?style=flat-square" /> </a>

as seen on TV, Atom, Vim, and Google Developer <br/>
<img src="./assets/cat-strolling.gif" alt="strolling" height="61" align="center"/>

</div>

Based on react-stroller, as long who can better stroll your pages than Cat? Support vertical, horizontal, mixed(horizontal view reflecting vertical scroll) scrolling and dragging. For a page or any scrollable container. Demo

API

Nyan-stroller just overrides scrollBar property of react-stroller. Library exposes 3 components.

Example

Just dont forget - this is not "sTroll" - this is "sTroll". Nyan is strolling.

Do not use this component for any other case due to performance issues and fixed position.

import { NyanStrollBar } from 'react-nyan-stroller';

<NyanStrollBar draggable targetAxis="horizontal" />
{/* if not work - apply override styles */}
<NyanStrollBar draggable axis="vertical" targetAxis="horizontal" overrideLocation="fixed"  />
import { NyanStrollContainer } from 'react-nyan-stroller';

<div style={{height:200}}>
  <NyanStrollContainer draggable >
    your content
  </NyanStrollContainer>
</div>

For rest of the possible options - see react-stroller

Size

Animated Nyan itself is 4kb. Plus 4 kb for stroller and faste. Result - around 9kb of 🌈🙀.

Licence

MIT