Skip to content

Latest commit

 

History

History
49 lines (29 loc) · 1.07 KB

README.md

File metadata and controls

49 lines (29 loc) · 1.07 KB

<image-blur>

Custom Element for adaptive, blurred images via src attributes.

Banner

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:

import "html-imageblur"

Via <script> in ES6

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

Via <script> in ES5

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

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

<image-blur src="https://unsplash.it/800/600" blur="20">

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.