mitchelloharawild / icons

R package to easily insert web icons to RMarkdown
https://pkg.mitchelloharawild.com/icons
313 stars 43 forks source link

Animated icons #52

Open bttomio opened 3 years ago

bttomio commented 3 years ago

In the previous version, we could set animate = spin as a new style for the icon. Is this still possible?

Here is my code: icon_style(fontawesome("cog", style = "solid"), size = 1, animate = "spin", color = "white")

Thanks a lot for your package!

mitchelloharawild commented 3 years ago

Thanks for your kind words. Animations are no longer included in the package, but can be added directly using CSS. I hope that I (or someone else) will create a package dedicated to CSS animations which should work seamlessly with the outputs of this package.

Pinging @emitanaka as this directly relates to https://github.com/emitanaka/anicon/ - would you like to work on https://github.com/mitchelloharawild/animate with me? The plan is to wrap https://github.com/animate-css/animate.css/ and potentially other popular animation libraries for easy use in R Markdown (and hopefully also xaringan slides).

bttomio commented 3 years ago

Thank you very much for your reply, @mitchelloharawild!