2.0.32 • Published 5 months ago
@bebeal/vite-img-placeholder v2.0.32
@bebeal/vite-img-placeholder
Vite plugin for adding image placeholders with blur (low-res version), shimmer (animated effect), or RGB (samples dominant color from image) effects
Install
yarn add @bebeal/vite-img-placeholderUsage
import { imagePlaceholder } from '@bebeal/vite-img-placeholder'
// In your Vite config
export default defineConfig({
  plugins: [
    imagePlaceholder({ style: 'blur' }) //  opional style: 'blur' (default), 'shimmer', or 'rgb'
  ]
})You can also specify the placeholder style per image using URL parameters:
<img src="your-image.jpg?placeholder=shimmer" />
<!-- or with shorthand -->
<img src="your-image.jpg?p=shimmer" />2.0.32
5 months ago
2.0.31
5 months ago
2.0.30
5 months ago
2.0.29
5 months ago
2.0.28
5 months ago
2.0.27
5 months ago
2.0.26
5 months ago
2.0.25
5 months ago
2.0.24
5 months ago
2.0.23
5 months ago
2.0.22
5 months ago
2.0.21
5 months ago
2.0.20
5 months ago
2.0.19
5 months ago
2.0.18
5 months ago
2.0.17
5 months ago
2.0.16
5 months ago
2.0.15
5 months ago
2.0.14
5 months ago
2.0.13
5 months ago
2.0.12
5 months ago
2.0.11
5 months ago
2.0.10
5 months ago
2.0.9
5 months ago
2.0.8
5 months ago
2.0.6
5 months ago
2.0.5
5 months ago
2.0.4
6 months ago
2.0.3
6 months ago
2.0.2
6 months ago
2.0.1
6 months ago
2.0.0
6 months ago
1.0.0
6 months ago