Skip to content
This repository has been archived by the owner on Jun 21, 2019. It is now read-only.

pyrsmk/quark-imagine

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

quark-imagine 0.2.0

This project is now obsolete, since imagine is obsolete too

Imagine module for quark.

Install

npm install quark-imagine
bower install quark-imagine

Use

// Load one image
$('.myimage').load(function() {
	// loaded!
});

// Handle errors
$('.myimage').load(function() {
	// loaded!
}, function() {
	// boom!
});

// Load several images
$$('.images').load(function() {
	// Please note that the callback won't be triggered
	// when ALL images are loaded but for EACH loaded image.
	// To run your callback only when all images have been loaded
	// use imagine directly.
});

License

Published under the MIT license.