visibility-class
Adds a visible/invisible class to chosen elements as you scroll.
Last updated a year ago by entozoon .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install visibility-class 
SYNC missed versions from official npm registry.

Visibility Class

Adds a visible/invisible class to chosen elements as you scroll.

Install

npm i visibility-class

Integrate

You're likely gonna wanna import and compile it, as it's written in ES6 (because life is short).

import visibilityClass from "visibility-class";
visibilityClass(".visibility-class");
<section class="visibility-class"></section>

That's all well and good, but what does it do?

As you scroll down, it'll add a class of visible or invisible to your chosen elements.

<section class="visibility-class visible"></section>

Current Tags

  • 1.0.3                                ...           latest (a year ago)

4 Versions

  • 1.0.3                                ...           a year ago
  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (1)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |