🐛 Animation improvements (#23322)
🐛 Animation improvements (#23322)

* animation improvements

* fix types

* welp...

* use scheduleWait_ var instead

Gregable/amphtml,jridgewell/amphtml,alanorozco/amphtml,mhc-gh/amphtml,voyagegroup/amphtml,rsimha-amp/amphtml,adup-tech/amphtml,danielrozenberg/amphtml,rsimha-amp/amphtml,nexxtv/amphtml,jridgewell/amphtml,src-code/amphtml,prateekbh/amphtml,dotandads/amphtml,nexxtv/amphtml,src-code/amphtml,erwinmombay/amphtml,mhc-gh/amphtml,lannka/amphtml,danielrozenberg/amphtml,ampproject/amphtml,ampproject/amphtml,tlong2/amphtml,jmadler/amphtml,mhc-gh/amphtml,media-net/amphtml,jmadler/amphtml,Gregable/amphtml,mhc-gh/amphtml,taboola/amphtml,rsimha-amp/amphtml,Gregable/amphtml,sharethrough/amphtml,jpettitt/amphtml,erwinmombay/amphtml,media-net/amphtml,voyagegroup/amphtml,sharethrough/amphtml,media-net/amphtml,dotandads/amphtml,jpettitt/amphtml,cory-work/amphtml,taboola/amphtml,dotandads/amphtml,danielrozenberg/amphtml,tlong2/amphtml,zhouyx/amphtml,cory-work/amphtml,sharethrough/amphtml,cory-work/amphtml,honeybadgerdontcare/amphtml,tlong2/amphtml,rsimha-amp/amphtml,alanorozco/amphtml,lannka/amphtml,jridgewell/amphtml,jpettitt/amphtml,Gregable/amphtml,zhangsu/amphtml,yandex-pcode/amphtml,jpettitt/amphtml,cory-work/amphtml,zhouyx/amphtml,lannka/amphtml,zhouyx/amphtml,voyagegroup/amphtml,cory-work/amphtml,dotandads/amphtml,prateekbh/amphtml,zhouyx/amphtml,alanorozco/amphtml,jmadler/amphtml,cory-work/amphtml,prateekbh/amphtml,erwinmombay/amphtml,jpettitt/amphtml,taboola/amphtml,zhangsu/amphtml,Gregable/amphtml,prateekbh/amphtml,ampproject/amphtml,yandex-pcode/amphtml,jridgewell/amphtml,media-net/amphtml,zhouyx/amphtml,smartadserver/amphtml,voyagegroup/amphtml,erwinmombay/amphtml,voyagegroup/amphtml,ampproject/amphtml,ampproject/amphtml,danielrozenberg/amphtml,dotandads/amphtml,media-net/amphtml,alanorozco/amphtml,honeybadgerdontcare/amphtml,taboola/amphtml,lannka/amphtml,src-code/amphtml,adup-tech/amphtml,danielrozenberg/amphtml,taboola/amphtml,jpettitt/amphtml,jmadler/amphtml,mhc-gh/amphtml,prateekbh/amphtml,adup-tech/amphtml,yandex-pcode/amphtml,media-net/amphtml,smartadserver/amphtml,yandex-pcode/amphtml,taboola/amphtml,src-code/amphtml,honeybadgerdontcare/amphtml,prateekbh/amphtml,sharethrough/amphtml,erwinmombay/amphtml,Gregable/amphtml,alanorozco/amphtml,smartadserver/amphtml,smartadserver/amphtml,Gregable/amphtml,danielrozenberg/amphtml,adup-tech/amphtml,tlong2/amphtml,media-net/amphtml,honeybadgerdontcare/amphtml,danielrozenberg/amphtml,jmadler/amphtml,jridgewell/amphtml,voyagegroup/amphtml,mhc-gh/amphtml,jridgewell/amphtml,zhangsu/amphtml,jridgewell/amphtml,alanorozco/amphtml,nexxtv/amphtml,sharethrough/amphtml,zhangsu/amphtml,nexxtv/amphtml,dotandads/amphtml,smartadserver/amphtml,smartadserver/amphtml,honeybadgerdontcare/amphtml,rsimha-amp/amphtml,honeybadgerdontcare/amphtml,media-net/amphtml,honeybadgerdontcare/amphtml,alanorozco/amphtml,yandex-pcode/amphtml,jpettitt/amphtml,tlong2/amphtml,src-code/amphtml,mhc-gh/amphtml,adup-tech/amphtml,jpettitt/amphtml,yandex-pcode/amphtml,alanorozco/amphtml,rsimha-amp/amphtml,ampproject/amphtml,jmadler/amphtml,tlong2/amphtml,Gregable/amphtml,voyagegroup/amphtml,src-code/amphtml,ampproject/amphtml,ampproject/amphtml,cory-work/amphtml,danielrozenberg/amphtml,yandex-pcode/amphtml,adup-tech/amphtml,nexxtv/amphtml,sharethrough/amphtml,zhangsu/amphtml,lannka/amphtml,taboola/amphtml,nexxtv/amphtml,zhouyx/amphtml,rsimha-amp/amphtml,lannka/amphtml,erwinmombay/amphtml,zhouyx/amphtml,mhc-gh/amphtml,prateekbh/amphtml,lannka/amphtml,nexxtv/amphtml,zhangsu/amphtml