Revert back to rems for vertical offset

pull/164/head
Amy 2 years ago
parent 4e66628fb6
commit 0a0f803ccf
  1. 4
      components/ShapesBackground.tsx

@ -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…
Cancel
Save