Why you cocky guys get shy around some girls?

Anonymous
really, I noticed it a lot now. I didn't have an opportunity to ask in person, so why do some confident cocky guys get awkward shy and just have some kind of trance when certain girl is near them.
I know you can say "oh , he likes her".
No, I want to know Why this guys change their behaviour from cocky douchebag to totally awkward shy guy, how can just a girl influence them, changing their persona or behaviour so drastically.
Why you cocky guys get shy around some girls?
10 Opinion