the-dataface / figma2html

Export Figma frames as responsive HTML and CSS
https://www.figma.com/community/plugin/1109185297790825980/figma2html
MIT License
48 stars 8 forks source link

Resizer script updates + lazy loading #3

Open svickars opened 2 years ago

svickars commented 2 years ago

Right now the resizer script is essentially the same as ai2html, but I think we can make it work a little better

Also, what happens when the "include resizer script" option is turned off? can someone just include that script elsewhere in the project?

sawyerclick commented 2 years ago

+1 on optimizing the resized script. I'll take a look.

It's ideal to have the option to turn it off in the instance that someone would be using multiple figma2html projects on a single site, in which case there would be repeat resize code. But I wonder if there is a better UX on it. Should it automatically be downloaded as a static link? How would it work with Svelte components?