I feel like Unity3D could be turned into an animation tool like Flash with some extensions. It already has HTML5 export.
https://createjs.com/ https://www.adobe.com/products/animate.html
Also as a direct substitute, Unity has much inferior font rendering, and no built-in vector graphics capabilities.
If I was doing a 2D animation tool for browser export, I don’t see that unity would offer me much, and would come with a lot of downsides.