storytellurx-v1/app/utils/lottie-to-svg.ts
Elias Rhouzlane a82706a764 feat: Add Lottie to SVG conversion utility and integrate zipper animation
- 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.
2025-07-01 04:23:37 +02:00

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);