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

What is Framer? Join the Community
Return to index
Jiwoong Lee
Posted Mar 07 - Read on Facebook

Hey, Framers. Lesson learned..
I wanted to use an external JS library and tried to use DOM element (Layer._element) to initiate the module, but it wasn't working. After many hours of trial and error, decided to just create dummy DOM elements outside of Framer layers and let them handles JS events. Here is the demo.
http://share.framerjs.com/a0z8vf9czte7/

BUT! at last, I realized that I can just add a dummy event handler, which do nothing, on Layer like "test.on Events.Click, ->", then the event handler added by external JS library just started to work.. (Try rotate the square)
http://share.framerjs.com/50ul7gu22ahe/

I just lost my half day. Sharing a tip for you.