An open API service indexing awesome lists of open source software.

https://github.com/tobua/overflow-scroll-fade

Fade effect for scrollable elements with overflow.
https://github.com/tobua/overflow-scroll-fade

Last synced: about 2 months ago
JSON representation

Fade effect for scrollable elements with overflow.

Awesome Lists containing this project

README

        


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](https://caniuse.com/mdn-api_scrolltimeline) API
- Currently works in Chrome, Edge and Opera
- ⚠️ Published as TypeScript and JSX see [this post on 𝕏](https://twitter.com/matthiasgiger/status/1766443368567971946) for the reasoning

> [!NOTE]
> This library is a much simpler successor to [indicate](https://github.com/tobua/indicate) which has less restrictions and more features but uses older and more performance intensive techniques.

## Usage

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

const MyScroll = () => (

overflow-scroll-fade


overflow-scroll-fade



)
```