Custom Vue transition to collapse elements horizontally or vertically. Works with both fixed and 'auto' width or height.