Building performant expand & collapse animations | Web | Google Developers
A script for creating a performant menu animation with transform scale. Interesting technique of calculating a custom animation based on menu size in JS, then injecting it into the DOM.