Firs of all, thanks for your sharing.I've learned a lot from it.
But I found your transition height demo has a litte problem: Animation might flip occasionally.(Chrome Version 65.0.3325.181 (Official Build) (64-bit))
And I found the solution to that is forcing the height-animating-element to re-render(by using getComputedStyle(ele).height) before the animation starts.
And I know forcing re-render may lead to performance issues. But we can make our choice.
Firs of all, thanks for your sharing.I've learned a lot from it.
But I found your transition height demo has a litte problem: Animation might flip occasionally.(Chrome Version 65.0.3325.181 (Official Build) (64-bit))
And I found the solution to that is forcing the height-animating-element to re-render(by using getComputedStyle(ele).height) before the animation starts.
And I know forcing re-render may lead to performance issues. But we can make our choice.
Here is the fixed example: https://jsbin.com/cecazuxavo/edit?html,css,js,output And the problemtic example: https://jsbin.com/posawecibi/1/edit?html,css,js,output