# loading-mask

> CSS loading mask Gem for Rails

Latest version **1.1.0** (published 2020-01-16) · MIT license · 0 weekly downloads

## Install

```sh
npm install loading-mask
pnpm add loading-mask
yarn add loading-mask
bun add loading-mask
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2020-01-16 |
| First published | 2019-12-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 8.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | mr_timur_m |

## Links

- npm: https://www.npmjs.com/package/loading-mask
- Repository: https://github.com/Mr-Timur/loading_mask
- Homepage: https://github.com/Mr-Timur/loading_mask#readme
- Issues: https://github.com/Mr-Timur/loading_mask/issues
- npm.io page: https://npm.io/package/loading-mask

## Recent versions

- 1.1.0 (latest) — 2020-01-16
- 1.0.0 — 2019-12-16

## README

# 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](http://codepen.io/bartezic/pen/ByqeNq).

## 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

## Changelog

<ul>
  <li>Released gem v.0.0.2</li>
  <li>Released gem v.0.0.1</li>
</ul>

## Contributors

[Viktor Oleksyn](https://github.com/bartezic)

### License

Available under the MIT License.

---
_Source: https://npm.io/package/loading-mask · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
