[effects] Re-implement the Minimize Animation effect in JavaScript
The main benefit of re-implementing this effect in JavaScript is that we can get rid of full repaints for free.