Dirty panel animation logic