Phoenix, Brunch, Foundation, and Motion UI

I’m trying to set up a Phoenix app with Foundation Sites 6, but I’m struggling to figure out how to get the Motion UI integration with Foundation working, for example, closable callouts.

More specifically, it looks like my foundation.js tries to set a bunch of properties on the Foundation object including the Foundation.Motion property but this never seems to make it through my Brunch pipeline. I’ve taken several peoples Phoenix/Brunch/Foundation templates for a spin with no success. Has anyone had more success than me with this aspect of Foundation?

2 Likes

Ah, tl;dr: don’t specify a Foundation global in your brunch config. I must have done this while struggling with some other aspect of Foundation and completely stomped on those extras.

3 Likes