ember-cli-blurred-image
v0.1.6
Published
The default blueprint for ember-cli addons.
Downloads
1
Readme
Ember-cli-blurred-image
This addon helps to load your images progressively like Medium.
Installation
ember install ember-cli-blurred-image
How does it work?
Basically, it will load two images, the first one is pretty small and the second is usally the big one.
When the first one is loaded, the addon uses
canvas
to draw the image. In the meanwhile, the real image keeps loading.After the real image is loaded, it will be appended to the wrapper. CSS animation is applied during this period for better transition.
What else?
It supports customized radius for the bluring effect, you can pass in 0 - 180
.
{{blurred-image width=400
height=400
radius=100
normalImageUrl="https://cdn-images-1.medium.com/max/1800/1*sg-uLNm73whmdOgKlrQdZA.jpeg"
blurredImageUrl="/assets/default-small.jpeg"}}