This commit is contained in:
MLH
2024-12-20 23:29:32 +01:00
parent 22a4a615d8
commit cfa47c21f2
2 changed files with 8 additions and 11 deletions

View File

@@ -18,12 +18,10 @@
-webkit-animation-duration: 16s, 5s;
-webkit-animation-timing-function: linear, ease-in-out;
-webkit-animation-iteration-count: infinite, infinite;
-webkit-animation-play-state: running, running;
animation-name: heart-fall, heart-shake;
animation-duration: 16s, 5s;
animation-duration: 10s, 5s;
animation-timing-function: linear, ease-in-out;
animation-iteration-count: infinite, infinite;
animation-play-state: running, running
}
@-webkit-keyframes heart-fall {

View File

@@ -59,17 +59,16 @@ function createHearts() {
document.body.appendChild(container);
}
// Array of snowflake characters
const snowflakeSymbols = ['❤️', '💕', '💞', '💓', '💗', '💖'];
for (let i = 0; i < 12; i++) {
images.forEach(imageSrc => {
const heartsDiv = document.createElement("div");
heartsDiv.className = "hearts";
const img = document.createElement("img");
img.src = imageSrc;
heartsDiv.appendChild(img);
container.appendChild(heartsDiv);
});
}
}