How might I create a "smooth in/smooth out" to a value?

Long story short, I’m exploring an option of animating some objects with a script instead of an animator.
I can easily use lerp to move an object between two points, but if I set up a series of such lerps the motion between them is very sudden.

But I’m wondering if I could write a function that smooths a value in and out. So instead of adding the exact same value each frame, it adds only a little at the start, gradually adding larger amounts, and then gradually reducing the same value.

But the trick is that it need to do this in sequence with other linear values, or rather, it needs to accomplish this entirely within a set amount of time.

I could imagine there is a relative simple trick; some value that I can add or multiply the value by each frame, but I have no idea what it would be.

Are you just talking about slerp? Unity - Scripting API: Vector3.Slerp

Animation curves are also a very simple way to do this: Unity - Scripting API: AnimationCurve

Possibly; thank you for the link.
As I look it over, the implementation is confusing me; I’m not sure now to use that. I don’t quite follow what the example is showing. I’ll try to find some tutorials on my next day off.

True, but I’m looking into the possibility of not using the built-in animation system.
I tried using it at first, but it’s not working as well as I had hoped, and making small adjustments is a pain and a half.
It would be easier for me to make a script to move my object between target-objects, but the disadvantage is that I don’t get the smooth movement curves I can with an animation.

It’s just lerp but smoothed at the start and end. It works exactly the same otherwise.

There’s also Quaternion.Slerp.

It doesn’t actually have anything to do with the animation system. It’s a serialisable class that lets you edit key frames in the inspector. Then you can just evaluate the the curve based on time.

The example shows them calculating different starting points though. Well, I’ll take a look at it on Saturday, see how well it works.