npm.io
1.0.0 • Published 10 years ago

the-force

Licence
ISC
Version
1.0.0
Deps
0
Vulns
0
Weekly
0

Code Climate

Test Coverage

Installation

npm install the-force

Add script to your page:

<script src="node_modules/force.js">

NOTE: This currently only works with Safari 9+.

Bootstrap to button

TheForce.beWith('button-id').alter('boxShadow');

Make the button glow

As more pressure is applied to the touch pad, it will alter the effect:

TheForce.beWith('button-id').alter('boxShadow', 'green');

Compile the ES5 file

npm run compile