Jacob separated the spotted and the black animals from the other animals in the flock. Jacob kept his animals separate from Laban’s.
Then when the goats mated in front of the branches, the young that were born were spotted, striped, or black.
Any time the stronger animals in the flock were mating, Jacob put the branches before their eyes. The animals mated near those branches.