script to run animations