Mixed animation with flexbox