Why would my guy friend flirt with me A LOT out of no where for a few days and then ignore me directly afterwards?

Why would my guy friend flirt with me A LOT out of no where for a few days and then ignore me directly afterwards?
Post Opinion