What is the meaning of Capriccio?

A sudden and unexpected or fantastic motion; a caper (from same etymology, see below); a gambol; a prank, a trick.

A fantastical thing or work.

A type of landscape painting that places particular works of architecture in an unusual setting.

A piece of music, usually fairly free in form and of a lively character.

capriccio

whim, fancy, caprice, quirk

tantrum

capriccio

Source: wiktionary.org