Animate functions in 3 dimensions!