Giraffes are cursorial animals, meaning they are adapted to running and walking on land. They have long legs that allow them to take large strides, and they can reach speeds of up to 60 km/h (37 mph). Giraffes also have a high centre of gravity, which gives them good balance and helps them to move quickly and easily over rough terrain.
By swimming.
Giraffes are also able to swim, although they do not do so often. They are capable of swimming long distances, and they have been known to cross rivers and lakes in order to find food or to escape from danger.
By climbing trees.
Giraffes are also able to climb trees, although they do not do so often. They are able to use their long necks and legs to reach up to the leaves of trees, and they can use their hooves to grip the branches. Giraffes have been known to climb trees to escape from predators, to get a better view of the surrounding area, or to reach food that is out of reach on the ground.