https://github.com/guyisra/imagesloaded-rails
https://github.com/guyisra/imagesloaded-rails
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/guyisra/imagesloaded-rails
- Owner: guyisra
- License: mit
- Created: 2013-09-15T15:14:26.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2016-03-11T20:58:10.000Z (over 10 years ago)
- Last Synced: 2024-04-24T16:24:27.771Z (about 2 years ago)
- Language: Ruby
- Size: 24.4 KB
- Stars: 3
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# ImagesLoadedRails
asset pipeline wrapper for imagesLoaded.js - Detect when images have been loaded.
## Installation
Add this line to your application's Gemfile:
gem 'imagesLoaded_rails'
and add to application.js manifest
//= require imagesloaded
And then execute:
$ bundle
Or install it yourself as:
$ gem install imagesLoaded_rails
## Usage
imagesLoaded( elem, callback )
and in jQuery
$('#container').imagesLoaded( function() {
// images have loaded
});
see https://github.com/desandro/imagesloaded for more info
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-new-feature`)
5. Create new Pull Request