Is there a trick to transitioning flex-basis
from auto
to other values? From what I gather this is the one exception to the rule... which is annoying because it's arguably the most useful.
Here's an example: http://codepen.io/jamiewinder/pen/WrgrEB
Clicking the 'Toggle' button should open the drawer using a transition. The opacity works, but the height - defined using flex-basis
- does not. It works if I set flex-basis
to a number of pixels, or a percentage, or anything other than auto
which means I need to know the height of the content in order to get this working.
Am I missing something?