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

Scroll Expand

PreviousNext

A scroll expand animation component.

"use client"

import { HoverExpandGallery } from "@/components/animations/scroll-expand/scroll-expand"

const images = [
  {
    src: "https://skiper-ui.com/images/x.com/13.jpeg",
    alt: "Illustrations by my fav AarzooAly",
    label: "# 23",
  },
  {
    src: "https://skiper-ui.com/images/x.com/32.jpeg",
    alt: "Illustrations by ©AarzooAly",
    label: "# 23",
  },
  {
    src: "https://skiper-ui.com/images/x.com/20.jpeg",
    alt: "Illustrations by ©AarzooAly",
    label: "# 23",
  },
  {
    src: "https://skiper-ui.com/images/x.com/21.jpeg",
    alt: "Illustrations by ©AarzooAly",
    label: "# 23",
  },
  {
    src: "https://skiper-ui.com/images/x.com/19.jpeg",
    alt: "Illustrations by ©AarzooAly",
    label: "# 23",
  },
  {
    src: "https://skiper-ui.com/images/x.com/1.jpeg",
    alt: "Illustrations by ©AarzooAly",
    label: "# 23",
  },
]

export function ScrollExpandDemo() {
  return (
    <div className="flex h-full w-full flex-col items-center justify-center gap-12 overflow-hidden bg-[#f5f4f3] py-12">
      <HoverExpandGallery images={images} direction="horizontal" />
      <HoverExpandGallery images={images} direction="vertical" />
    </div>
  )
}

Installation

pnpm dlx pitsi@latest add scroll-expand

Usage

import { ScrollExpand } from "@/components/animations/scroll-expand"
Perspective Section TransitionScroll Fade

On This Page

InstallationUsage

© 2025 pitsi/ui. All rights reserved.

Sign In