Is there a way to have addressable LEDs turn on from the “middle out”

So I just got some addressable LEDs working via a Wemos D1 Mini and I am going to put the strip behind my TV. I have it setup so that when the movie starts playing, it turns them off and then turns them on when it is paused.

I just want a simple effect where the lights turn on from the middle out. So the middle 2 LED turn on, then the 2 LED next to those and so on until all LED are on over the course of about 2 seconds. I want them to turn off the same way.

How would I do that with ESPHome?

You’d need to use the partition function. (The whole effects thing is easier with wled though).