LED strip Trail effect arduino

I am trying to make just what is seen in the video https://youtu.be/R9wbYRV1AEM?si=tbJpcLPUwb5HfisN
can someone please help me

And what is your issue? Did you try to code this?
Please show your efforts.

Have you tried the FastLED ibrary examples? It seems that there was something close to that effect.

Adafruit has TONS of information about addressable LED strips (which they generally call NeoPixels).

They may not have that exact example project but there is plenty to get you started.

That is FastLED's "fade to black" effect.

to be honest i found the code right here in this website which is like this
#include <Adafruit_NeoPixel.h>

const int DIN_PIN = 6; // D5

const int LED_COUNT = 30;

Adafruit_NeoPixel pixels(LED_COUNT, DIN_PIN, NEO_GRB + NEO_KHZ800);

void setup() {

pixels.begin();

}

void loop() {

for(int i=0; i<LED_COUNT; i++) {

pixels. clear();

pixels.setPixelColor(i, pixels.Color(128, 128, 128)); // red




pixels.show();

delay(30);

}

}

This makes one "moving" pixel white. Not red. No "fade" effect. Try FastLED

https://fastled.io/docs/group___color_fades.html#ga404d163d8a422cee2df2baac4151ca98