Why does she ignore me up close but stare at me from far away?

So this girl and I are really shy around each other. We can socialize with other people perfectly fine but around each other we fall apart and get really quiet near each other, it's the same deal in the halls, when we see each other we seem to awkwardly avoid eye contact but then sometimes I'll see her try and make it. She also stares at me when I'm not looking at her and am far away, up close she tends to ignore me. I've heard her mention my name a few times around her friends. I like her a lot and I tend to get shy around her too.

Why is she like this?
Why does she ignore me up close but stare at me from far away?
Post Opinion