A giraffe rests by lying with its body on top of its folded legs. To lie down, the animal kneels on its front legs and then lowers the rest of its body. To get back up, it first gets on its knees and spreads its hind legs to raise its hindquarters. It then straightens its front legs. With each step, the animal swings its head.

In captivity, the giraffe sleeps intermittently around 4 - 6 hours per day, mostly at night. It usually sleeps lying down, however, standing sleeps have been recorded, particularly in older individuals. Intermittent short "deep sleep" phases while lying are characterized by the giraffe bending its neck backwards and resting its head on the hip or thigh, a position believed to indicate paradoxical sleep.

More Info: en.wikipedia.org