Example: How to make a array of sprites slide between sides rotate and fadeout using gsap
In this example snippet we create a PixiJS application with a specified width, height, and background color, appending it to the document body. We then iterate through a loop to create seven sprites from a PNG image, positioning them vertically on the screen with equal spacing. Each sprite is centered, given a fixed size, and placed at calculated positions. Finally, GSAP animates these sprites to move horizontally back and forth, while also rotating and changing opacity in a repeating and staggered manner, creating an animated visual effect.