Scroll Fade Effect
ncdai-chirags/scroll-fade-effectFreeComponent
A React component that adds a fade effect to content as you scroll.
Install it
npx shadcn@latest add https://www.chirags.dev/r/scroll-fade-effect.jsonSource
1import React from "react";23import { cn } from "@/lib/utils";45export function ScrollFadeEffect({6 className,7 orientation = "vertical",8 ...props9}: React.ComponentProps<"div"> & {10 orientation?: "horizontal" | "vertical";11}) {12 return (13 <div14 data-orientation={orientation}15 className={cn(16 "data-[orientation=horizontal]:overflow-x-auto data-[orientation=vertical]:overflow-y-auto",17 "data-[orientation=horizontal]:scroll-fade-effect-x data-[orientation=vertical]:scroll-fade-effect-y",18 className19 )}20 {...props}21 />22 );23}
What it pulls in
Other registry items
Files it writes
More from ncdai
All 28 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Apple Hello Effectapple-hello-effect | ncdai | Components | Free | 1 dep | |
| Consent Managerconsent-manager | ncdai | Components | Free | 1 dep · 2 files | |
| Flip Sentencesflip-sentences | ncdai | Components | Free | 1 dep | |
| GitHub Starsgithub-stars | ncdai | Components | Free | no deps | |
| Shimmering Textshimmering-text | ncdai | Components | Free | 1 dep | |
| Slide to Unlockslide-to-unlock | ncdai | Components | Free | 1 dep | |
| Testimonials Marqueetestimonials-marquee | ncdai | Components | Free | no deps | |
| Theme Switchertheme-switcher | ncdai | Components | Free | 3 deps |
