Because of greed one is reborn in eggs of geese, doves or as other animals obsessed by great passion, like also in the womb of a rhinoceros... Because of ignorance one is reborn in the eggs of insects and worms. Because of hate one is rebornas snake. Because of pride and obduracy, one is reborn as lion. Because of arrogance & narcissism one is reborn in the wombs of donkeys and dogs. If miserly & discontented one creates rebirth as a monkey. If foulmouthed, faithless & shameless one is reborn as crow. Those flogging, chaining & injuring elephants, horses, & buffalos become spiders, scorpions, & stinging insects of cruel character. Those who are flesh-eating, angry, & fiery are reborn after death as tigers, jackals, cats, sharks, vultures, wolves & the like. Those who are generous givers, but angry & cruel become Nāgas = snake-demons of great iddhi-power... Any deliberate wrongdoing in thought, speech and/or action can produce rebirth as animal! Therefore one should always shun all that is wrongdoing...
Source (edited extract): Pańcagatidīpanī by Ashvaghosa & Saddhammaghosa: 11-12th century AC. Tr. by Ann A. Hazlewood. Journal of the Pāli Text Society. Vol. XI 1987: http://www.pariyatti.com/book.cgi?prod_id=132714