2.0.32 • Published 6 months ago

@bebeal/vite-img-placeholder v2.0.32

Weekly downloads
-
License
-
Repository
github
Last release
6 months ago

@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-placeholder

Usage

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

6 months ago

2.0.31

6 months ago

2.0.30

6 months ago

2.0.29

6 months ago

2.0.28

6 months ago

2.0.27

6 months ago

2.0.26

6 months ago

2.0.25

6 months ago

2.0.24

6 months ago

2.0.23

6 months ago

2.0.22

6 months ago

2.0.21

6 months ago

2.0.20

6 months ago

2.0.19

6 months ago

2.0.18

6 months ago

2.0.17

6 months ago

2.0.16

6 months ago

2.0.15

6 months ago

2.0.14

6 months ago

2.0.13

6 months ago

2.0.12

6 months ago

2.0.11

6 months ago

2.0.10

6 months ago

2.0.9

6 months ago

2.0.8

6 months ago

2.0.6

6 months ago

2.0.5

6 months ago

2.0.4

7 months ago

2.0.3

7 months ago

2.0.2

7 months ago

2.0.1

7 months ago

2.0.0

7 months ago

1.0.0

7 months ago