This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Koen Bok
Posted Nov 18 - Read on Facebook

Made a small example of something I saw on Dribble. It's a deck of cards where you can pull the top card to see the rest of the stack. If you release beyond a certain distance the card flies offscreen.

http://codepen.io/koenbok/pen/Lotci

7 Comments

Cemre Güngör

Whoa this is incredible!

Yap Kwang Yik

Very cool~!

Thomas Aylott

Touch handling on Chrome for Android isn't working for this one. Still works though

Midas Kwant

Oh nice!!

Ryan Gonzalez

Beautiful

Aaron Carámbula

This is amazing. Koen, in making it, did you find anything you think should be abstracted or integrated into draggables?

One thing i've thought about since your awesome resistance demo is that it'd be great to have that as a property to edit in real time or set when instantiated. I think limiting to an axis is another one that'd be neat, or limiting distance on an axis.

I know there are diminishing returns at some point of abstraction but some freebies would be awesome for really common patterns.

Koen Bok

Yeah why not. Maybe resistance.x and resistance.y where they define the max position?

Read the entire post on Facebook