1.0.0 • Published 8 years ago
the-force v1.0.0
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
1.0.0
8 years ago