• Robin GoyalRobin Goyal, almost 4 years ago

    I've one question only. If i were to make an animation. Does it create .json file?

    0 points
    • Suresh SelvarajSuresh Selvaraj, almost 4 years ago

      Yes, but depends on what you're looking for. If you go to the Diya menu and select "Copy Prototype JSON", you'll get the entire animation in JSON format including the artboards, layers, transitions, easing values etc. However, the JSON is in Diya's format. Is there any reason you're looking for JSON?

      0 points
      • anthony barbato, almost 4 years ago

        One reason might be if lets say there was a shape morph or other complex transition and you wanted to use the json in something like Lottie which would wrap that in js so you can control it. Its great to have output in html, but alot of what people will use this for is most likely mobile, so the output formats should reflect that (as a later update).

        0 points
      • Robin GoyalRobin Goyal, almost 4 years ago

        Well, at my office my developers say that whatever animation I create. In order to give them, I've to give .json file. For example, If i want when a something takes time to load. There should be smooth, decent animation which will keep user engaged where user wont feel that he's waiting. So, I create some decent animation. As you say that it will create in JSON format. I can give it then, right?

        0 points
        • Suresh SelvarajSuresh Selvaraj, almost 4 years ago

          You can, but I would recommend you give them the specs sheet Diya generates. It'll be a lot more useful for them. In the Diya bar, click on the export button. This will generate 2 HTML files and an images folder. Let's say your prototype is called "demo.sketch". Diya will export "demo.html" and "demo specs.html". The specs file will show your devs exactly how to reconstruct the animation you made. I think it'll be more useful for them.

          Also, I'm exploring Lottie export, so that could help them too :)

          1 point