- Created a new utility script `lottie-to-svg.ts` to convert Lottie animations to SVG format using `bodymovin-to-smil`. - Added a new Lottie animation file `zipper.json` for the zipper animation. - Generated the corresponding SVG file `zipper.svg` from the Lottie animation. - Updated `deno.json` to include new dependencies and references for the zipper animation. - Modified `main.css` to introduce new color variables and styles for the zipper animation.
7 lines
249 B
TypeScript
7 lines
249 B
TypeScript
import smil_converter from "npm:bodymovin-to-smil";
|
|
|
|
const zipperData = await Deno.readTextFile(
|
|
"./public/assets/lotties/zipper.json",
|
|
);
|
|
const xml = await smil_converter(JSON.parse(zipperData));
|
|
await Deno.writeTextFile("./animation.svg", xml);
|