Skip to content

bdbch/html-imageblur

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

<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.

Releases

No releases published

Packages

No packages published