f[x_] := 2 x^3 + 2 x - 3
p[a_] := {{a, f[a]}}
t[x_, a_] := f[a] + (x - a) f'[a]
Animate[Plot[f[x], {x, -2, 4}, PlotRange -> {{-2, 4}, {-24, 128}}, 
  Epilog -> {PointSize[Medium], Point[p[a]], Red, 
    InfiniteLine[{p[a][[1]], {0, t[0, a]}}]}], {a, -2, 4}, 
 AnimationDirection -> ForwardBackward]