How Did Flying Evolve?

How Did Flying Evolve? Wings evolved because bipedal animals were leaping into the air; large wings assisted leaping. … Wings evolved from gliding ancestors who began to flap their gliding structures in order to produce thrust. (This is reasonable and possible, but only with phylogenetic evidence for an arboreal gliding origin.) How does flight evolve?