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

What is Framer? Join the Community
Return to index
Verónica García
Posted Aug 29 - Read on Facebook

Hi Guys! I have this loop and I want that, in each iteration, the parent of each itemBackground be: item0, item1, item2, item3, item4 and item5.
I tried with: "parent: sketchLogin.item+i", "parent: sketchLogin.item[i]", "parent: sketchLogin."item"+i" but it doesn't work.
Any ideas?

itemBackgrounds = []
for i in [0..5]
itemBackground = new Layer
width: 1175
height: 279
y: 285*i
backgroundColor: "rgba(255,255,255,1)"
itemBackgrounds.push(itemBackground)

1 Comments

Koen Bok

I think this is what you are looking for: http://share.framerjs.com/kxxymq891el0/

Read the entire post on Facebook