how do i replace delay with millis in this code

We see you have 50 posts here.

What attempt have you made to use the millis() BWD (blink without delay) technique?

You have looked a the example that comes with the IDE?

.