Capricorn guy hot and cold attitude?

So there’s this capricorn guy keeps acting hot and cold before when he would see me he would always greet me ask how i’m doing, and would always ask about me and what i’ve been doing we worked together is specific tasks for 3 months and lately he have been ignoring me avoiding eye contact and just acting like i don’t exist and I seriously have no idea why! And we still sometime work together but when i go up to and ask him for specific things related to work he would be extremely nice but I don’t why he’s acting like that it’s so confusing!!
Capricorn guy hot and cold attitude?
Post Opinion