While at Zynga I created a minimal Library elCanvas
Which in under 20kb allows you to create and animate 2d animations in pure code with no filesize overhead!
javascript
https://github.com/luckyde/elCanvas
Examples of fully code created animation, these files have no actual assets on the page, everything is created in code!
See the Pen elCanvas_Sticker_Doge by Lucky (@LuckyDe) on CodePen.
See the Pen elCanvas_Sticker_Doge by Lucky (@LuckyDe) on CodePen.
Created a converter to turn svgs into canvas code
Created a converter to animate in pure canvas
Optimized it to run on devices as old as 10 year old canvas code
Used in 2 separate games as the main animation engine