You can add a shake functionality to your creative by detecting the device orientation and motion events, you can do this manually or by using external libraries.
- You can find a guide for manually detecting the device orientation and motion events here
- You can use this external easy-to-use library (shake.js), which is only 3KB.
If you use any other library please keep in mind the size of it, and please check it is compatible with targeted devices.
Comments
0 comments
Please sign in to leave a comment.