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

What is Framer? Join the Community
Return to index
Joe Day
Posted Feb 10 - Read on Facebook

Quick module question: can you reference a module from within a module?

For instance, say I have module "foo" and module "bar". "foo" has animation curves in it, and "bar" has an interaction in it that needs one of "foo"s animation curves. Is this possible?

2 Comments

Jordan Robert Dobson

Yep. Just so the require at the top.

You have to have an export reference for anything you need as well...I recommend collecting it all in one object.

Joe Day

Ah...that worked. I had erred by including it within the scope of the "bar" rather than outside of it.

Jordan I'm curious about collecting it all in one object. Do you have any live examples of that?

Read the entire post on Facebook