improve animation trigger event