Image component with animated shimmer placeholder and blur-to-clear loading effect.
Made by raouf.codesInstallation
Usage
Custom Placeholder
You can provide your own base64-encoded placeholder image:
Props
| Prop | Type | Default |
|---|---|---|
src | string | - |
alt | string | - |
width? | number | 400 |
height? | number | 210 |
blurDataURL? | string | - |
className? | string | - |
...props? | ImageProps | - |
Features
- Shimmer animation — A subtle shimmer overlay sweeps across while loading
- Blur-to-clear transition — Image starts blurred and scales down as it loads
- Default placeholder — Falls back to a neutral gray SVG placeholder
- Custom placeholder support — Provide your own
blurDataURLfor branded loading states
Notes
- The shimmer animation requires the
shimmerkeyframe in your CSS. Add this to your global styles:
- For production, consider a server-side preprocessing step to generate low-resolution data URLs for all remote assets.
Built by raouf.codes. The source code is available on GitHub.
Last updated: 1/28/2026
