How to control for loop with speed?

Hello,

how do I control for loop with a speed? I am looking for a smooth transition.

for(i = 0;i<15;i++)
        {

            for(j = 100;j>=0;j=j-20)
            {
            //I want to add speed here
                skinnedMeshRenderer.SetBlendShapeWeight(i,j);

            }

        }

can use coroutines, so can add delay inside the loop with WaitForSeconds:

Don’t fiddle around with the loop values for stuff like this, have a modifier for i and j seperately and multiply that by the iterator.