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

What is Framer? Join the Community
Return to index
Giovanni Caruso
Posted Aug 13 - Read on Facebook

I'm having some trouble with the ScrollComponent and the "for loop". Any idea how to assign the "y" value for the layer "avatar" so to have a rectangle below each card?

1 Comments

Benjamin Den Boer

Hey Giovanni Caruso - you can simply reference the layer.y/height directly within the for-loop. So, the logic you're looking for is:

y: layer.y + layer.height - 100

Where 100 is the height of the avatar. In your case, since you've scaled the layers by 0.94, you can offset it with the same factor, or also scale the avatars accordingly. :-)

Read the entire post on Facebook