Try doing something similar to what I recommended in this post:
You need a spring that has a range from [-1, 1], then use the Offset of the spring multiplied by the max offset you need the bobbing for. You can also use the Velocity and Acceleration of the spring to do this utilizing a change in time dt.
Edit: Instead of changing the camera’s angle (as seen in the post), you would change the camera’s position offset.