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

What is Framer? Join the Community
Return to index
Rafael Marin
Posted Aug 14 - Read on Facebook

I've been working on many prototypes with lists, and there's a recurring problem of having to delete items and recalculate positions every time. So I created a ListComponent that extends ScrollComponent and updates the stack of elements automatically whenever something is added or removed. It's very elementary still but it's such a common problem that I thought it might be useful for other people.

Here's an example:

And here the source code:


Niels van Hoorn

Nice! Would be cool to be able to add an animation to the updating of the content as well.

And did you know you can do this?

{ListComponent,ListGroup} = require "ListComponent"

Read the entire post on Facebook