Ease in/out a rotation Input.GetAxis

Hello

Im attempting to get some ease-in/out to work with my simple rotation script, gradually increasing and decreasing the rotation speed instead of instantly getting to the rotation speed value.
i know GetAxis uses the sensitivity settings within unity, id like to get a similar result through the script itself to have some more control, and also allowing the rotation to ease out after releasing the button.

here is the relevant script

using UnityEngine;
using System.Collections;

public class RotationEaseTest : MonoBehaviour {

    private float stationaryRotationSpeed = 10.0f;

    // Update is called once per frame
    void Update () {
        float rotation = Input.GetAxis ("Horizontal") * stationaryRotationSpeed;
        rotation *= Time.deltaTime;
        transform.Rotate (0, rotation, 0);

   
    }
}

you could store the local value of the position, and ease input towards it. Here’s an example using Lerp (as it’s the simplest ease):

using UnityEngine;
using System.Collections;

public class RotationEaseTest : MonoBehaviour {

    private float stationaryRotationSpeed = 10.0f;
   
    private float _hor = 0f;
    private float _easeStrength = 0.5f;

    // Update is called once per frame
    void Update () {
        var p = Input.GetAxis("Horizontal");
        _hor = Mathf.Lerp(_hor, p, _easeStrength); //here we can swap out with other ease functions
   
        float rotation = _hor * stationaryRotationSpeed * Time.deltaTime;
        transform.Rotate(0, rotation, 0);
    }
}

I tried Lerp before, but for some reason couldn’t make it work with my full script the way i wanted to
This worked like a charm, thank you.