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!
Examples of fully code created animation, these files have no actual assets on the page, everything is created in code!
See the Pen Doge by Lucky Dee (@luckyde) on CodePen
See the Pen This is Fine by Lucky Dee (@luckyde) on CodePen
See the Pen Crab by Lucky Dee (@luckyde) on CodePen
Created a converter to turn svgs into canvas code
Created a converter to animate in pure canvas
Optimised it to run on devices as old as 10 year old canvas code
Used in 2 separate games as the main animation engine