vercel / satori

Enlightened library to convert HTML and CSS to SVG

Home Page:https://og-playground.vercel.app

Repository from Github https://github.comvercel/satoriRepository from Github https://github.comvercel/satori

Support for groups and classnames or id's

justis-app opened this issue · comments

Feature Request

This would help in css animations and making the svg's more intereactive

Description

What do you want to add to Satori, and why?
Something like id and class that allows us to select our elements from css or js

Would love to make it happen, but what’s tricky here is that it might not be a 1:1 mapping between the HTML and SVG elements. Some ideas are needed.

maybe add support for id's to be compiled and expose a Group element or a g element