Overview
react image and background image fade v2 is a modern image loading toolkit for React: image elements, CSS backgrounds, placeholders, hooks, responsive helpers, and polished fade transitions.
Install
Install react image and background image fade and import the optional stylesheet once. The stylesheet provides the default premium shimmer skeleton, blur placeholder, and fade classes.
npm install react-image-and-background-image-fade
import 'react-image-and-background-image-fade/styles.css'Quick start
Use Image when you want a normal accessible image with layout stability, a placeholder, and a fade-in.

import { Image } from 'react-image-and-background-image-fade'
export function QuickStartPreview() {
return (
<Image
src="/images/home/feature1.jpg"
alt="Quick start preview"
width={1080}
height={720}
placeholder="skeleton"
fadeType="zoom-blur"
/>
)
}What is included
The public surface includes Image, BackgroundImage, Picture, ImageLoader, useImage, useInView, ImageConfigProvider, responsive helpers, and preload helpers.
Choose your next stop
Image
The polished default component for normal images.
BackgroundImage
Preloaded CSS backgrounds with placeholders.
Picture
Art direction and modern format fallbacks.
ImageLoader
Render-prop control for custom loading UIs.
Hooks
useImage and useInView for advanced flows.
Responsive Helpers
Generate srcSet and sizes strings.
Shared Defaults
Set design-system defaults once.
Styling
CSS classes, variables, and skeleton shimmer.
Migration
Move from v1 names to the v2 API.