Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/RayPS/Framer-Module-ShakeEvent

Shake event for your prototype.
https://github.com/RayPS/Framer-Module-ShakeEvent

framer framer-component framer-prototype framer-resources framer-studio framerjs module prototype

Last synced: 2 months ago
JSON representation

Shake event for your prototype.

Awesome Lists containing this project

README

        

## ShakeEvent Module for FramerJS

#### DEMO: (Open in your phone)
👉

#### Usage:
Place `shakeEvent.coffee` into the `modules` folder of your project.

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

#### Options:

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