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

What is Framer? Join the Community
Return to index
Jorn van Dijk
Posted Dec 10 - Read on Facebook

I was playing with a simple iOS toggle and the new color class. It takes away quite a bit of the complexity of prototyping this control (which is super detailed and a nice exercise to get right). Thanks Andrew for the initial toggle prototype, you shared a while ago. Here are the .framer files → http://share.framerjs.com/70nki138zrt9/

PS: The file turned out a bit more dynamic then I intended it to be. You can set the toggleSize (#3) and everything grows / shrinks along nicely.

3 Comments

Andrew Nalband

Cool!

Jordan Robert Dobson

Reminds me a lot of this:

http://codepen.io/jordandobson/pen/CczHd

And this:

http://codepen.io/jordandobson/pen/qcKGz

I made back back in the day. Awesome work Jorn and Andrew.

Marc Krenn

Amazing attention to detail, Jorn! I love it! :)

Found one tiny "bug": If you move your cursor off the trigger before TouchEnd'ing it, it will stay 'onTouch'. Making 'trigger' a non-moveable, draggable layer and using 'DragStart/End' instead fixes this problem:

http://share.framerjs.com/dpj1giidwvjc/

Read the entire post on Facebook