Skip to content

RayPS/Framer-Module-ShakeEvent

Repository files navigation

ShakeEvent Module for FramerJS

DEMO: (Open in your phone)

👉 http://share.framerjs.com/bb1is3lkolp7/

Usage:

Place shakeEvent.coffee into the modules folder of your project.

ShakeEvent = require "shakeEvent"
# ...
ShakeEvent.onShake = ()->
	alert "shaked!"

Options:

ShakeEvent.throttleInterval = 1   # Default 1   (secend(s))
ShakeEvent.sensitivity      = 20  # Default 20  (a lower number is more sensitivity)