Created
August 16, 2013 19:43
-
-
Save carambula/6252926 to your computer and use it in GitHub Desktop.
With Framer, I often need to access a class of views like "all of the views that scroll" or "all of the profile pics". Here's how I do it: 1. In Photoshop, I name all of the layergroups I want access to with a keyword. ie: Highlights 2013 FramerPager
Photos 2013 FramerPager
Highlights 2012 FramerPager
(see a pattern? This is both good naming AND…
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for (var layerGroupName in PSD) { | |
| view = PSD[layerGroupName]; | |
| // Change FramerPager here to your keyword | |
| if (view.name.indexOf("FramerPager") != -1){ | |
| // do something with that thing! | |
| // one idea is to add it to an array for access later | |
| // or you cold set their css style, set their positions, whatever | |
| // in the demo below I make a new FramerPager for it so it… pages | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment