set animation vars dynamically