This phrase describes individuals who are keen to take advantage of a person during their peak success or positive circumstances as friends. However, when facing hardships, failures, or challenging times, their loyalty and friendship quickly falter, and they opt to distance themselves rather than support when things aren't as enticing.
In contrast to fair-weather friends are genuine ones who stand by one steadfastly whether during triumphs or challenges and value companionship above convenience."