macaron-css / macaron

Compiler-augmented typesafe CSS-in-JS with zero runtime, colocation, maximum safety and productivity
https://macaron.js.org/
MIT License
735 stars 16 forks source link

[Feature] Support @keyframes for animation #54

Closed dhutaryan closed 3 months ago

dhutaryan commented 4 months ago

Hello,

It seems there is not way to create and use @keyframes for animation. Could you take a look at this feature?

Mokshit06 commented 3 months ago

Hi, @macaron-css/core uses vanilla-extract's @vanilla-extract/css as the core layer, on top of which macaron's bundler integrations and static extraction take over, so currently for quite a few base features the docs haven't been ported over to macaron.

Keyframes do exist though, and you can see the docs + examples over here https://vanilla-extract.style/documentation/api/keyframes/#keyframes