0.1.2 • Published 8 years ago

faul v0.1.2

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

Faul

Lazy load images and videos

Install

With Bower

bower install faul

With NPM

npm install faul

Example Setup

Javascript

import Faul from 'faul';

// create an instance (with the defaults)
const faul = new Faul({
  items: '.faul', // the selector or dom elements for the items
  bg: false, // if src should be set as background-image
  threshold: 0, // the threshold to load
  stagger: 100, // duration for stagger (in ms)
  fn: item => {}, // callback function for each individual item
});

Methods

faul.set(nodeList || '.selector'); // set items
faul.destroy(); // remove the event listeners

License

MIT License

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago