I love Framer 3.0 ...I'm trying to recreate this effect seen in Paper by facebook...
here's something to get you started: http://codepen.io/aw2/pen/kjHAt
omg you are the man Andreas!
Very cool... Looking at the code:
utils.modulate(e.clientY, [c.maxY, cover.y], [0, 180], true)
I don't see where c.maxY is defined... where does that come from?
Ah, I see it's a layer property. never mind :)
this is genius! speedY and speedX to 0 is a clever idea! where does utils.modulate come from — I don't see it in the framer source. and what does it do?
It's a framer function - its like the maprange function, but a "cleaner" syntax https://github.com/koenbok/Framer/blob/master/framer/Utils.coffee
ah, Koen Bok needs to update the link to the utils source in the documentation, it points to the Framer3 tree, not Master branch. it's too new, I haven't seen it.
yeah - I like the syntax better. easier to read :) I'll add some comments to the code to clear things up
Haha my secret functions are being discovered. I need to document this.
forked! Andreas Wahlström
hey Andreas Wahlström I forked your example, wanted it to make it work so the »speed« is relative to where you started your gesture, I am storing the init during dragStart. it's not really perfect, but feels a bit better: http://codepen.io/frischmilch/pen/rcbif
Man, the shadows on Andreas Wahlström's pen are just so awesome