0.3.8 • Published 3 years ago

rmr-backdrop v0.3.8

Weekly downloads
1
License
ISC
Repository
github
Last release
3 years ago

A JavaScript module for smooth background image loading used on https://readmeansrun.com.

See it in action here.

Events:

  • start: fired when a backdrop is about to be loaded
  • end: fired when a backdrop has been downloaded & applied to the page

View more here.

Example usage:

var dropper = new Backdrop({
  id: 'backdrop',
  duration: 0.5
});

dropper.on('start', function(e) {
  console.log('Backdrop loading: ' + e.details[0]); // src of backdrop image
});

dropper.on('end', function(e) {
  console.log('Backdrop applied: ' + e.details[0]); // src of backdrop image
});

dropper.drop({
  url: 'http://davidfmiller.github.io/assets/img/backdrop/koru.jpg',
  styles: { position: 'left bottom', size: 'cover'}
});

Free to use, please include a link to https://readmeansrun.com in your page's source.

0.3.8

3 years ago

0.3.6

4 years ago

0.3.5

4 years ago

0.3.7

4 years ago

0.3.3

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.0

4 years ago

0.1.4

4 years ago

0.1.2

6 years ago

0.1.1

6 years ago