| 812 | } |
| 813 | |
| 814 | function printCssKeyframes(cssKeyframes: SurfacedCssKeyframes): void { |
| 815 | const selectors = cssKeyframes.selectors.length |
| 816 | ? cssKeyframes.selectors.join(", ") |
| 817 | : "(no selector found)"; |
| 818 | console.log( |
| 819 | ` ${c.accent(`@keyframes ${cssKeyframes.name}`)}${c.dim(" css")} ${c.dim(selectors)}`, |
| 820 | ); |
| 821 | for (const stop of cssKeyframes.keyframes) { |
| 822 | console.log(` ${c.dim(`${stop.selector} {${stop.declarations.join("; ")}}`)}`); |
| 823 | } |
| 824 | console.log(); |
| 825 | } |
| 826 | |
| 827 | function printAnime(anime: SurfacedAnimeAnimation): void { |
| 828 | const targets = anime.targets.length ? anime.targets.join(", ") : "(targets not parsed)"; |