2.1.1 • Published 2 years ago

@kitce/react-use-fadeout-scroll v2.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

react-use-fadeout-scroll

React hook to apply fadeout effect to scroll container

Install

pnpm add @kitce/react-use-fadeout-scroll

Documentation

Documentation

Example

import useFadeoutScroll from '@kitce/react-use-fadeout-scroll';

const ScrollContainer = () => {
  const [ref, style] = useFadeoutScroll<HTMLDivElement>({ yFadingRate: 0.3 });
  return (
    <div ref={ref} style={style}>
      {/* very long content */}
    </div>
  );
};

License

MIT License

2.1.1

2 years ago

2.1.0

2 years ago

2.0.0

2 years ago

1.0.0

2 years ago