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

What is Framer? Join the Community
Return to index
Alex Maximets
Posted Nov 22 - Read on Facebook

Hi everyone!
Got a quick question that's to do with converting a "for loop" into the ".foreach loop". I need to be able to target each item in my array and also associate different pages with each of those items in the array.
http://share.framerjs.com/uitwz1vj74j9/
Appreciate your help

3 Comments

Jacky Lee

Also, a quick example for targeting each item in your array to do specific things: http://share.framerjs.com/7j72h9l94ykp/

Alex Maximets

Hi Jacky, thanks for your comment. Either way I figured it out. Rather than doing " layers= for i in [0..2] - layer = new layer" I needed to put it in an array as " for i in [0..2] - layer = layers[i] = new layer" Literally took me a week to figure it out!

Read the entire post on Facebook