bartezic / css_loading_mask

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Loading mask (CSS or With JQuery plugin)

CSS loading mask Gem for Rails

Installation

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>

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

  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

Contributors

Viktor Oleksyn

License

Available under the MIT License.

About


Languages

Language:CSS 84.0%Language:JavaScript 16.0%