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

What is Framer? Join the Community
Return to index
Rohan K
Posted Aug 09 - Read on Facebook

I am wondering if there is a way to create states from layers in sketch? Ive created subLayers as on and off states for some elements (freeText, videoTab, textTab) and I was planning to toggle the visibility of the child layers when clicking on the parent element to simulate on and off states. Is this the best way to do this?

3 Comments

Andreas Wahlström

That sounds like a good approach. I wrote a module for making stuff like this easier. It might help: https://github.com/awt2542/Layers-for-Framer.

Rohan K

Oh hi Andreas. This is so funny, I was just using your other module for text layers and I was wondering to contact you to ask if you ever thought of building focusOn and focusOff events for the text layer? And here you are..hahaha!

Thanks for the link to the module, I am gonna try it out!

Andreas Wahlström

You mean for input events? Have you tried https://github.com/ajimix/Input-Framer I think that's better suited for creating forms :)

Read the entire post on Facebook