Angular directive for loading a temporary backgroundImage placeholder while loading the actual backgroundImage.
npm install angular-background-image-placeholder
$ npm install angular-background-image-placeholder
` Add to your HTML (or build script or whatever). Remember to load it after angular itself.
`
`Add to your app's dependency array
`
angular
.module('my-module', [
'ac-background-image'
]);
`Example use
`
`$3
`
`##Tip
Use a small image as a placeholder to maximize the effect. In the example above a base64 image is loaded removing the need for an url-request.
It is recommended that the placeholder is a downscaled(1% or lower) version of the full-size image to be loaded.
Build
To build the app, run npm run build`.MIT
Copyright 2016 Alexander Castillo