1.1.0 • Published 4 years ago
loading-mask v1.1.0
Loading mask (CSS or With JQuery plugin)
CSS loading mask Gem for Rails
Installation
Add this line to your application's Gemfile:
gem 'loading_mask'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install loading_mask
Add this line to your application.js file
//= require loading_mask
Add this line to your application.css file
*= require loading_mask
or for SASS
@import 'loading_mask_sass';
Usage
Just add classes to HTML(in this case you should include only CSS):
<div class="lmask-relative">
<div class="lmask"></div>
</div>
Add mask to jquery element via JS:
$('body').lmask('show');
Remove mask via JS:
$('body').lmask('hide');
Check out the demo.
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Changelog
Contributors
License
Available under the MIT License.