made transition mixin flexible