restore oli animation code which actually works