nico-progressive-image

1.1.1 • Public • Published

NProgressiveImage

NProgressiveImage is a progressive image loading plugin like medium effect

Features

  • Small
  • Simple
  • No other dependencies

Installation

$ npm i nico-progressive-image

How to use it

<script src="../dist/nico-progressive-image.min.js"></script>
<script>
  window.onload = function() {
    new NProgressiveImage({
      container: '.content',
      items: '.nprogressive-image',
      widthAttr: 'data-width',
      heightAttr: 'data-height'
    })
  }
</script>
import NProgressiveImage from 'nico-progressive-image'

new NProgressiveImage({
  container: '.content',
  items: '.nprogressive-image',
  widthAttr: 'data-width',
  heightAttr: 'data-height'
})

Great thanks to http://www.quasimondo.com/StackBlurForCanvas/StackBlurDemo.html

Package Sidebar

Install

npm i nico-progressive-image

Weekly Downloads

0

Version

1.1.1

License

ISC

Unpacked Size

71.9 kB

Total Files

6

Last publish

Collaborators

  • nicholasxjy