Revert back to rems for vertical offset
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
4e66628fb6
commit
0a0f803ccf
|
@ -209,9 +209,7 @@ export const defaultGetShapesConfig = ((pageWidth, pageHeight) => {
|
||||||
const opacity = getRandomOpacity(colour);
|
const opacity = getRandomOpacity(colour);
|
||||||
|
|
||||||
defaultConfig[shape]?.push({
|
defaultConfig[shape]?.push({
|
||||||
top: `${(((y + verticalOffset) / window.innerHeight) * 100).toFixed(
|
top: `${((y + verticalOffset) / 16).toFixed(5)}rem`,
|
||||||
5
|
|
||||||
)}vh`,
|
|
||||||
left:
|
left:
|
||||||
x == 0
|
x == 0
|
||||||
? `${((horizontalOffset / window.innerWidth) * 100).toFixed(5)}vw`
|
? `${((horizontalOffset / window.innerWidth) * 100).toFixed(5)}vw`
|
||||||
|
|
Loading…
Reference in New Issue