To behave in a way designed to impress others, often by displaying one's abilities or possessions.
"He was clearly showing off in front of the new students, doing tricks on his skateboard."
I was just showing off. I do that sometimes.
— J.D. Salinger, 'The Catcher in the Rye' (1951)