Starfields are one of my favourite pixel animations.
Hugo Elias once wrote a wonderful write-up tutorial about the intricacies of coding star field animations that should not fall into oblivion.
My implementation in C with SDL2:
https://github.com/velorek1/starfield