sigilUI

Parallax Layer

Move a layer in response to scrolling.

@sigil-ui/componentsReact

Preview

Live preview Interactive

Import

import { ParallaxLayer } from "@sigil-ui/components";

Usage

<ParallaxLayer speed={0.5}>
  <div className="p-6 border border-[var(--s-border)]">Parallax content</div>
</ParallaxLayer>

Props

PropTypeDefaultDescription
speednumber0.3Parallax speed multiplier. Positive = moves slower than scroll, negative = faster.