An open API service indexing awesome lists of open source software.

https://github.com/bdbch/html-imageblur

Web Component for adaptive, blurred images
https://github.com/bdbch/html-imageblur

blurred-images custom-elements customelements image-blur webcomponents

Last synced: 2 months ago
JSON representation

Web Component for adaptive, blurred images

Awesome Lists containing this project

README

        

# ``

> Custom Element for adaptive, blurred images via src attributes.

![Banner](banner.jpg)

### [Live Demo (try to change attributes in dev tools)](https://bdbch.github.io/html-imageblur/)

`image-blur` creates an adaptive, blurred version of an image src with full control over the blur value without using CSS3.

## Installation

`npm install --save html-imageblur`

## Usage

#### ES6:

```js
import "html-imageblur"
```

#### Via `` in ES6

```js
<script src="build/image-blur.js">
```

#### Via `` in ES5

```js
<script src="build/image-blur.es5.js">
```

When image-blur is loaded correctly, you can just use it like this:

```html

```

You can style the image-blur component and the canvas inside will adapt itself to your styles.

## Browser Support

This will need an update to find out what browsers are currently supporting all features

## Contribution

Feel free to send in Pull Requests. I'll take my time to look into them.