Transgenic animals are primarily created using techniques such as microinjection, viral vectors, and CRISPR-Cas9. The desired gene is inserted into the embryonic genome using these methods, and the embryo is then implanted into a surrogate mother. The resulting offspring are screened to identify those that have successfully integrated the transgene.