CSS loading mask Gem for Rails
Add this lines to your html:
<link rel="stylesheet" href="path_to_file/loading_mask.css">
<script src="path_to_file/loading_mask.js"></script>
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.
- 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
Available under the MIT License.