Getting Started
Components
- Animated Beam
- Animated Circular Progress Bar
- Animated Gradient Text
- Animated Grid Pattern
- Animated List
- Animated Shiny Text
- Animated Theme Toggler
- Aurora Text
- Avatar Circles
- Bento Grid New
- Blur Fade
- Border Beam
- Cool Mode
- Dither Shader New
- Dock New
- Dot Pattern
- Dotted Map New
- File Tree
- Flickering Grid
- Grid Pattern
- Hero Video Dialog
- Hyper Text New
- Icon Cloud New
- Interactive Hover Button
- Lens New
- Light Rays New
- Line Shadow Text New
- Magic Card New
- Marquee
- Meteors New
- Morphing Text New
- Motion Grid New
- Neon Gradient Card New
- Number Ticker
- Orbiting Circles New
- Pixel Image New
- Pointer New
- Progressive Blur New
- Pulsating Button
- Rainbow Button
- Retro Grid New
- Ripple
- Ripple Button
- Scroll Progress
- Shimmer Button
- Shine Border New
- Smooth Cursor New
- Striped Pattern New
- Text Animate
- Typing Animation
- Video Text
- Warp Background
- Word Rotate Beta
Pixel Image
A stunning image reveal animation that splits images into grid pieces with staggered fade-in and grayscale-to-color transitions.
motion-svruned
Installation
pnpm dlx shadcn-svelte@latest add https://sv-animations.vercel.app/r/pixel-image.json
Install dependencies
Install the required packages for this component:
pnpm add motion-sv runed
Copy the Source Code
Copy and paste the following code into your project:
pixel-image.svelte
index.ts
Examples
Color Only (Once)
Fast Reveal (Replay)
Grid Variations
8x8 Grid
8x3 Grid
Props
PixelImage
A component that creates stunning image reveal animations by splitting images into a grid of pieces with staggered fade-in effects.
| Name | Type | Default | Description |
|---|---|---|---|
src | string | Required | The image source URL |
grid | "6x4" | "8x8" | "8x3" | "4x6" | "3x8" | "6x4" | Predefined grid configuration |
customGrid | { rows: number; cols: number } | - | Custom grid dimensions (overrides grid prop) |
grayscaleAnimation | boolean | true | Enable grayscale-to-color transition effect |
pixelFadeInDuration | number | 1000 | Duration of each piece's fade-in animation (ms) |
maxAnimationDelay | number | 1200 | Maximum random delay for piece animations (ms) |
colorRevealDelay | number | 1300 | Delay before color reveal begins (ms) |
once | boolean | false | If true, animation plays only once. If false, replays each time element enters view |