That didn't work, trying again
This commit is contained in:
+2
-8
@@ -26,14 +26,8 @@ let setImages = () => {
|
|||||||
for (let index in images) {
|
for (let index in images) {
|
||||||
let img = document.createElement("img");
|
let img = document.createElement("img");
|
||||||
img.setAttribute("src", images[index]);
|
img.setAttribute("src", images[index]);
|
||||||
img.style.setProperty(
|
img.style.setProperty("left", (Math.random() * 100).toString() + "%");
|
||||||
"left",
|
img.style.setProperty("top", (Math.random() * 100).toString() + "%");
|
||||||
(Math.random() * window.innerWidth).toString() + "px",
|
|
||||||
);
|
|
||||||
img.style.setProperty(
|
|
||||||
"top",
|
|
||||||
(Math.random() * window.innerHeight).toString() + "px",
|
|
||||||
);
|
|
||||||
app.append(img);
|
app.append(img);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
+4
-2
@@ -16,9 +16,10 @@
|
|||||||
|
|
||||||
body,
|
body,
|
||||||
html {
|
html {
|
||||||
block-size: 100dvb;
|
block-size: 100svb;
|
||||||
inline-size: 100dvi;
|
inline-size: 100svi;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -26,6 +27,7 @@ html {
|
|||||||
inline-size: 100%;
|
inline-size: 100%;
|
||||||
block-size: 100%;
|
block-size: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
margin: 0;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
|||||||
Reference in New Issue
Block a user