Present participle of 'fun,' meaning to joke around, make fun of someone, or engage in joking behavior; though this usage is relatively informal.
From 'fun' as a verb (a relatively recent development in English) plus the -ing gerund ending.
English speakers are constantly verbing nouns—'fun' as a verb is only a few decades old, showing how modern English constantly invents new uses for familiar words!
Complete word intelligence in one call. Free tier — 50 lookups/day.