Skip to content

devsgroup/shaker.js

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Shaker.js

Shake.js is a vanilla javascript plugin to provide a simple access to Vibration API

// create an instance of Shaker with some options
var shaker = new Shaker({
    'duration': 1000
});

// Start a continuous vibrations based on the passed speed and the duration (ms)
shaker.continuousVibration('fast', 2000);

// Start a single vibration based on duration(ms) passed on instance.
shaker.vibrate();

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 86.5%
  • HTML 13.5%