This commit is contained in:
Andras Schmelczer 2022-01-24 21:36:45 +01:00
parent 1b63bbc0da
commit 9f906d1fdf
No known key found for this signature in database
GPG key ID: 39260B5B0614A13E
13 changed files with 17 additions and 17 deletions

View file

@ -77,7 +77,7 @@ export class PageBackground extends PageElement {
private randomizeBlobs(topOffset: number, bottomOffset: number) {
this.random.seed = 50;
this.blobs.forEach(b => {
this.blobs.forEach((b) => {
const z = -Number.parseInt(b.style.zIndex);
const [x, y] = this.randomXY(z, topOffset, bottomOffset);
b.style.transform = `translate3D(${x}px, ${y}px, ${-z}px) rotate(-20deg)`;