First popularized in 《
红楼梦》 (Dream of the Red Chamber), chapter 62, describing the maid Pingr (
平儿) showing up 'dressed up like flowers swaying in the wind'. The literal image —
招展 'to flutter/wave' (of branches) — is what gives the idiom its lush, slightly showy feel.