Preview:
// #1 Main Composition

// Offset > Shift Center To
x_offset = effect("Offset")("Shift Center To")[0];
y_offset = effect("Offset")("Shift Center To")[1];
posterizeTime(thisComp.layer("Null 7").effect("posterize adjusment 2, 15")("Slider"));
x = Math.round(random(-10,10));
y = x*240;
[x_offset, y_offset+y];

// Adjustment Layer Position
temp = transform.position[0];
[temp + (240*index)-240, transform.position[1]]

// #2 Inside Each Pre-Composed Row of Squares with Random Opacity

// Each Square Position
offset = 240;
[position[0]+offset*index-120,position[1]];

// Each Square Opacity
posterizeTime(thisComp.layer("Null 5").effect("posterize")("Slider"));
seedRandom(index+thisComp.layer("Null 5").effect("seed")("Slider"));
random(0,100);

// #3 Inside Pre-Composition of Rows

// Each Row Position
offset = 240;
[position[0],position[1]+offset*index-240];
downloadDownload PNG downloadDownload JPEG downloadDownload SVG

Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!

Click to optimize width for Twitter