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

What is Framer? Join the Community
Return to index
Kasper Germann Kramme
Posted Nov 20 - Read on Facebook

Hello Framers. Can anyone give me some clues on how to make an profile avatar and name stay fixed in the left corner of a feed and then get pushed up and replaced by a new avatar when the user scrolls down. Like Instagram. Does this description make any sense?

5 Comments

Jonas Treub

Check out the following example: https://share.framerjs.com/9s1tungjg4jv/

Kasper Germann Kramme

Thanks. Isn't there an easier way to do it without arrays? I only need a few headers.

Jonas Treub

You can do it without arrays but it won't make it easier. Arrays and loops prevent a lot of code repetition. And since code repetition also causes the bugs to be repeated I would highly recommend learning some basic coding skills. Have you seen our programming primer? https://framerjs.com/getstarted/programming/

Kasper Germann Kramme

Okay. Might be a good idea to look into then. Can i assign images that i'v designed in sketch to layers in arrays?

Jonas Treub

You can move the entire sketch layer to a new parent:
sketch.layer.parent = scrollComponent.content

Or assign the image to a new layer:
newLayer.image = sketch.layer.image

Read the entire post on Facebook