Pitsi UI
  • Home
  • Docs
1
1
Sections
  • Get Started
  • Components
  • Animations
  • MCP Server
  • Changelog
Get Started
  • Installation
  • CLI
  • llms.txt
Components
  • Accordion
  • Alert Dialog
  • Alert
  • Aspect Ratio
  • Avatar
  • Badge
  • Breadcrumb
  • Button Group
  • Button
  • Card
  • Carousel
  • Checkbox
  • Collapsible
  • Combobox
  • Command
  • Container
  • Context Menu
  • Data Table
  • Dialog
  • Drawer
  • Dropdown Menu
  • Empty
  • Field
  • Flex
  • Form
  • Grid
  • Hero Button
  • Hover Card
  • Input Group
  • Input OTP
  • Input
  • Item
  • Kbd
  • Label
  • Menubar
  • Native Select
  • Navigation Menu
  • Pagination
  • Popover
  • Progress
  • Radio Group
  • Resizable
  • Responsive
  • Scroll Area
  • Segmented Control
  • Select
  • Separator
  • Sheet
  • Sidebar
  • Skeleton
  • Slider
  • Sonner
  • Spacer
  • Spinner
  • Squircle
  • Switch
  • Table
  • Tabs
  • Textarea
  • Theme Toggle
  • Toggle Group
  • Toggle
  • Tooltip
  • Typography
  • Unicorn Wrapper
Animations
  • Background Image Parallax
  • Card Swipe Carousel
  • Cards Parallax
  • Parallax Scroll
  • Perspective Carousel
  • Perspective Section Transition
  • Scroll Expand
  • Scroll Fade
  • Scroll Scale
  • Slide Down
  • Slide Up
  • Smooth Parallax Scroll
  • Smooth Scroll
  • Sticky Footer
  • Text Along Path
  • Text Gradient Opacity
  • Text Parallax
  • Transforms 3d
  • Zoom Parallax

Zoom Parallax

PreviousNext

A zoom parallax animation component.

"use client"

import { ZoomParallaxImage } from "@/components/animations/zoom-parallax/zoom-parallax"

export function ZoomParallaxDemo() {
  return (
    <div className="flex min-h-[400px] w-full flex-col items-center justify-center gap-8 p-8">
      <div className="grid w-full max-w-4xl grid-cols-2 gap-4 md:grid-cols-3">
        <ZoomParallaxImage
          src="https://images.unsplash.com/photo-1506905925346-21bda4d32df4?w=400&h=300&fit=crop"
          alt="Mountain landscape"
          className="aspect-[4/3] w-full"
          scaleRange={[0.95, 1.05]}
        />
        <ZoomParallaxImage
          src="https://images.unsplash.com/photo-1469474968028-56623f02e42e?w=400&h=300&fit=crop"
          alt="Forest landscape"
          className="aspect-[4/3] w-full"
          scaleRange={[0.95, 1.05]}
        />
        <ZoomParallaxImage
          src="https://images.unsplash.com/photo-1447752875215-b2761acb3c5d?w=400&h=300&fit=crop"
          alt="Nature path"
          className="aspect-[4/3] w-full"
          scaleRange={[0.95, 1.05]}
        />
        <ZoomParallaxImage
          src="https://images.unsplash.com/photo-1433086966358-54859d0ed716?w=400&h=300&fit=crop"
          alt="Waterfall"
          className="aspect-[4/3] w-full"
          scaleRange={[0.95, 1.05]}
        />
        <ZoomParallaxImage
          src="https://images.unsplash.com/photo-1501785888041-af3ef285b470?w=400&h=300&fit=crop"
          alt="Lake view"
          className="aspect-[4/3] w-full"
          scaleRange={[0.95, 1.05]}
        />
        <ZoomParallaxImage
          src="https://images.unsplash.com/photo-1470071459604-3b5ec3a7fe05?w=400&h=300&fit=crop"
          alt="Foggy mountains"
          className="aspect-[4/3] w-full"
          scaleRange={[0.95, 1.05]}
        />
      </div>
      <p className="text-muted-foreground text-center text-sm">
        Scroll to see the zoom effect on each image
      </p>
    </div>
  )
}

Installation

pnpm dlx pitsi@latest add zoom-parallax

Usage

import { ZoomParallax } from "@/components/animations/zoom-parallax"
Transforms 3dInstallation

On This Page

InstallationUsage

© 2025 pitsi/ui. All rights reserved.

Sign In