👉 http://share.framerjs.com/bb1is3lkolp7/
Place shakeEvent.coffee
into the modules
folder of your project.
ShakeEvent = require "shakeEvent"
# ...
ShakeEvent.onShake = ()->
alert "shaked!"
ShakeEvent.throttleInterval = 1 # Default 1 (secend(s))
ShakeEvent.sensitivity = 20 # Default 20 (a lower number is more sensitivity)