See, in the examples below, some possibilities to use animations on function graphics
Parabola
Straight Line
Other curves