pass seq as variable to animate function