aligned eerything to be pixel-perfect
This commit is contained in:
@@ -3,6 +3,6 @@ document.addEventListener("DOMContentLoaded", function() {
|
||||
let randX = randomInt(0, 256)
|
||||
let randY = randomInt(0, 256)
|
||||
|
||||
starNoise.style.top = `calc(${randX}px * var(--pxDensity))`
|
||||
starNoise.style.left = `calc(${randY}px * var(--pxDensity))`
|
||||
starNoise.style.top = `round(calc(${randX}px * var(--pxDensity)), var(--pxDensityPx))`
|
||||
starNoise.style.left = `round(calc(${randY}px * var(--pxDensity)), var(--pxDensityPx))`
|
||||
}, false)
|
||||
Reference in New Issue
Block a user