When does crying end?

My two year old cries whenever she wakes up. It’s not a soft cry, it’s a CRY. It happens when waking up from naps and overnight. The second I go in there to get her out if her crib she stops and is smiley and happy. When does this “end”?