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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.1.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.1.1
    1
  • 1.1.0
    1

Package Sidebar

Install

npm i nico-progressive-image

Weekly Downloads

2

Version

1.1.1

License

ISC

Unpacked Size

71.9 kB

Total Files

6

Last publish

Collaborators

  • nicholasxjy