Unity Fade in Unity 6.4 UI, animations...etc

I would like to make a unity fade in , so that when my game starts the game fades in, and i can have this maybe as a scene?, so i can have it before each of my scenes. Would i need to use the animation feature to change the alpha of a black panel. I dont know but if anyone has any ideas, then please share :D, Thanks

Sure, If a static panel is OK you can put a canvas add a panel and put a CavasGroup on the base canvas.

You can fade from 0 Alpha to 1 Alpha by changing the CanvasGroup value.

using UnityEngine.UI;  // add this at the top

public CanvasGroup myCanvasGroup;
private bool fadeIn;

void Start()
{
    fadeIn =true;
    myCanvasGroup.alpha = 0f;
}

void Update()
{
    if(fadeIn)
    {
        myCanvasGroup.alpha = myCanvasGroup.alpha + Time.deltaTime;
        if(myCanvasGroup.alpha >= 1)
        {
             myCanvasGroup.alpha = 1;
             fadeIn = false;
        }
    }
}