Slightly old-fashioned and polite, common in TV-period-drama dialogue and educated older speech. Modern colloquial Mandarin would more often use
生气 (shēngqì, get angry) or
发火 (fāhuǒ, blow up).
动气 has a calmer, more measured tone — closer to 'become vexed' than 'get pissed off'.