Applying a spring to a camera's CFrame every RenderStepped

How could you add a spring effect to a camera’s CFrame every RenderStepped?

What im trying to get it to look like is this(but without it bouncing back out:

Hooke’s law is what you’re looking for.