Scroll Fade Effect
ncdai/scroll-fade-effectUnverifiedComponent
A React component that adds a fade effect to content as you scroll.
Install it
npx shadcn@latest add https://raw.githubusercontent.com/Prathamesh-exe/prathfolio/main/chanhdai.com/public/r/scroll-fade-effect.jsonSource
1import type { ComponentProps } from "react"23import { cn } from "@/lib/utils"45export type ScrollFadeEffectProps = ComponentProps<"div"> & {6 /**7 * Scroll direction to apply the fade effect.8 * @defaultValue "vertical"9 * */10 orientation?: "horizontal" | "vertical"11}1213export function ScrollFadeEffect({14 className,15 orientation = "vertical",16 ...props17}: ScrollFadeEffectProps) {18 return (19 <div20 data-orientation={orientation}21 className={cn(22 "data-[orientation=horizontal]:overflow-x-auto data-vertical:overflow-y-auto",23 "data-[orientation=horizontal]:scroll-fade-effect-x data-vertical:scroll-fade-effect-y",24 className25 )}26 {...props}27 />28 )29}
Files it writes
More from ncdai
All 17 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Apple Hello Effectapple-hello-effect | ncdai | Components | Unverified | 1 dep | |
| Apple Hello Effect - Hindiapple-hello-effect-hindi | ncdai | Components | Unverified | 1 dep | |
| Apple Hello Effect - Spanishapple-hello-effect-spanish | ncdai | Components | Unverified | 1 dep | |
| Apple Hello Effect - Vietnameseapple-hello-effect-vietnamese | ncdai | Components | Unverified | 1 dep | |
| Brand Assets Menubrand-assets-menu | ncdai | Components | Unverified | 1 dep | |
| chevrons-up-down-iconchevrons-up-down-icon | ncdai | Components | Unverified | 1 dep | |
| Code Block Commandcode-block-command | ncdai | Components | Unverified | 4 deps · 3 files | |
| Consent Managerconsent-manager | ncdai | Components | Unverified | 1 dep · 2 files |
