Shapes Background #164
|
@ -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`
|
||||
|
|
Loading…
Reference in New Issue