To attract attention to for the purpose of bragging or personal exhibitionism; to demonstrate a skill, talent or property for the purpose of bragging or personal exhibitionism.
strike an attitude
How often have the words show off and strike an attitude occurred in a corpus of books? (source: Google Ngram Viewer )