Why would a person that dislikes you act super nice to you in front of his friends but ignore you otherwise?

Super nice as in smiling really wide and trying to get your attention

Why would a person that dislikes you act super nice to you in front of his friends but ignore you otherwise?
Post Opinion