1.0.0 • Published 8 years ago

the-force v1.0.0

Weekly downloads
3
License
ISC
Repository
github
Last release
8 years ago

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