Skip to content

jbavari/the-force

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Let the force be with you

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published