Shapes Background #164

Merged
a258wang merged 33 commits from feat/shapes-background into main 2021-08-27 01:45:16 -04:00
1 changed files with 1 additions and 3 deletions
Showing only changes of commit 0a0f803ccf - Show all commits

View File

@ -209,9 +209,7 @@ export const defaultGetShapesConfig = ((pageWidth, pageHeight) => {
const opacity = getRandomOpacity(colour);
defaultConfig[shape]?.push({
top: `${(((y + verticalOffset) / window.innerHeight) * 100).toFixed(
5
)}vh`,
top: `${((y + verticalOffset) / 16).toFixed(5)}rem`,
left:
x == 0
? `${((horizontalOffset / window.innerWidth) * 100).toFixed(5)}vw`