Skip to content

Instantly share code, notes, and snippets.

@carambula
Created August 16, 2013 19:43
Show Gist options
  • Select an option

  • Save carambula/6252926 to your computer and use it in GitHub Desktop.

Select an option

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…
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