前倨后恭

qián jù hòu gōng

to switch from arrogance to deference (idiom)

前

qián

front

倨

jù

(literary) haughty; arrogant

后

hòu

back

恭

gōng

respectful