overflow-scroll-fade

0.3.2 • Public • Published

overflow-scroll-fade

overflow-scroll-fade

Add a gradient-based dynamic fade effect to elements with scrollable overflow.

  • ⚛️ React JSX based
  • 🔄 Works with either horizontal or vertical overflow
  • ❗ Requires the ScrollTimeline API
    • Currently works in Chrome, Edge and Opera
  • ⚠️ Published as TypeScript and JSX see this post on 𝕏 for the reasoning

[!NOTE]
This library is a much simpler successor to indicate which has less restrictions and more features but uses older and more performance intensive techniques.

Usage

import { Scroll } from 'overflow-scroll-fade'

const MyScroll = () => (
  <Scroll direction="horizontal">
    <p>overflow-scroll-fade</p>
    <p>overflow-scroll-fade</p>
  </Scroll>
)

Dependencies (0)

    Dev Dependencies (4)

    Package Sidebar

    Install

    npm i overflow-scroll-fade

    Weekly Downloads

    9

    Version

    0.3.2

    License

    MIT

    Unpacked Size

    13.3 kB

    Total Files

    5

    Last publish

    Collaborators

    • tobua