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: 7 months ago
JSON representation
Shake event for your prototype.
- Host: GitHub
- URL: https://github.com/rayps/framer-module-shakeevent
- Owner: RayPS
- Created: 2015-09-14T12:30:20.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-16T04:00:20.000Z (almost 8 years ago)
- Last Synced: 2024-11-14T03:34:14.668Z (7 months ago)
- Topics: framer, framer-component, framer-prototype, framer-resources, framer-studio, framerjs, module, prototype
- Language: CoffeeScript
- Size: 339 KB
- Stars: 62
- Watchers: 6
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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)
```