The chrysalis splits open down the center, and the butterfly escapes. Meanwhile, a reddish liquid spills out. That's all the waste the butterfly, née caterpillar, produced during its stay.
When these eggs hatch out, they become caterpillars. This is called the larva stage. It doesn't look much like a butterfly yet, does it? Eventually the caterpillar builds a chrysalis around itself ...