saturation/uisaturation/ui
DocsComponentsBlocksPages
GitHub

Sections

IntroductionComponentsInstallationMCPTheming

Components

ComponentsAccordionAI Chat InputAlertAnimated GroupAnimated NumberAvatarBadgeBeamBlur FadeBorder TrailBreadcrumbButtonButton GroupCalendar PickerCardChartCheckboxCollapsibleComboboxCommandComparison SliderContext MenuCredit CardData TableDate PickerDialogDropdown MenuEmoji PickerEmptyFieldFiltersFull CalendarGlow EffectInputInput GroupInput OTPItemKanbanKbdMenubarNavigation MenuNovel EditorPaginationParallaxProgressProgressive BlurRadio GroupRippleSelectSeparatorSheetSkeletonSliderSonnerSpinnerSpotlightSwitchTableTabsText EffectText ShimmerTextareaToggleToggle GroupTreeTypography
Docs/Components/Parallax

Parallax

A scroll-driven parallax wrapper with GPU-accelerated transforms and reduced motion support.

Scroll to see parallax effect

Installation

pnpm dlx shadcn@latest add https://ui.saturation.io/r/parallax.json

Tailwind v4 — Source Scanning

Saturation UI copies component source into your project via the shadcn registry (no npm package). If Tailwind v4 isn't scanning your components directory, add this to your CSS entry file:

@source "../components";

This ensures all utility classes in CVA variants and data attribute selectors are included in your build.

Usage

import { Parallax } from "@/components/ui/parallax"
<Parallax speed={-0.1}>
  <img src="/hero.jpg" alt="Hero" />
</Parallax>

API Reference

PropTypeDefaultDescription
speednumber-0.1Parallax speed factor. Negative = moves slower than scroll (recedes), positive = faster.
classNamestring—Additional CSS classes.
childrenReact.ReactNode—Content to apply parallax effect to.
PreviousPaginationNextPopover

On This Page

  • Installation
  • Usage
  • API Reference