passing in animation name as variable to home page animation