If you refer to someone's vanity, you are critical of them because they take great pride in their appearance or abilities.
Men who use steroids are motivated by sheer vanity.
服用类固醇的男人们纯粹是受了虚荣心的驱使。