Sophic Interface Systems
Components

Scroll Fade

Scroll-aware edge fades for overflow containers.

Item 1
Item 2
Item 3
Item 4
Item 5
Item 6
Item 7
Item 8
Item 9
Item 10
Item 11
Item 12

Playground

<div className="overflow-hidden rounded-2xl border bg-card"> <ScrollFade className="h-72" hideScrollbar> {/* scrollable content */} </ScrollFade></div>

Usage

Add ScrollFade to the element that scrolls, and put the border/background on a wrapper when needed so the fade dissolves content rather than the card frame.

import { ScrollFade } from "@sophic/portal-ui/components/ui/scroll-fade";
<div className="overflow-hidden rounded-2xl border">
  <ScrollFade className="h-72" hideScrollbar>{/* … */}</ScrollFade>
</div>

Use axis="x" for horizontal scrollers. Props cover edge, size, disabled, and hideScrollbar. Unset size keeps the default fade depth. Further modifiers can go on className — see the shadcn scroll-fade docs.

Props

ScrollFade also accepts every native <div> attribute.

Prop

Type

Default

Changelog

  • 15 July 2026 — Demo playgrounds sit on a card surface so the fade reads cleanly on the tinted page. Full notes

On this page