New example! People often request simple examples of common mobile interactions. I've just added a simple draggable swiping example.
Some nifty little things in this example:- maxDragFrame- Prints distance dragged - Animates second layer based on distance dragged
Download .framer for Framer Studio:http://cl.ly/WP2S
View it in your browser:http://examples.framerjs.com/#draggable-swipe.framer
Happy prototyping! :)
Beautifuk! You can add That to the mobile dropdown as well.
Nice. Had not seen "maxDragFrame" (topScreen.draggable.maxDragFrame) .
Seems like there are so many properties not documented in http://framerjs.com/docs.html!! Seems like diggin through the Framer source is *really* important :)
Benjamin Den Boer, I'm having some difficulty understanding the function here:
topScreen.draggable.maxDragFrame = topScreen.frametopScreen.draggable.maxDragFrame.width *= 2
If you were to set that to swipe from the opposite direction, how would you do that? I'm still a bit fuzzy on this.
Someone has to explain maxdragframe to me again :-^
Cool! Thank you. But on phone it's breaking down sometimes. Perhaps because of using "event.x". You can use "event.pageX" instead.