typo
This commit is contained in:
@@ -18,12 +18,10 @@
|
|||||||
-webkit-animation-duration: 16s, 5s;
|
-webkit-animation-duration: 16s, 5s;
|
||||||
-webkit-animation-timing-function: linear, ease-in-out;
|
-webkit-animation-timing-function: linear, ease-in-out;
|
||||||
-webkit-animation-iteration-count: infinite, infinite;
|
-webkit-animation-iteration-count: infinite, infinite;
|
||||||
-webkit-animation-play-state: running, running;
|
|
||||||
animation-name: heart-fall, heart-shake;
|
animation-name: heart-fall, heart-shake;
|
||||||
animation-duration: 16s, 5s;
|
animation-duration: 10s, 5s;
|
||||||
animation-timing-function: linear, ease-in-out;
|
animation-timing-function: linear, ease-in-out;
|
||||||
animation-iteration-count: infinite, infinite;
|
animation-iteration-count: infinite, infinite;
|
||||||
animation-play-state: running, running
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@-webkit-keyframes heart-fall {
|
@-webkit-keyframes heart-fall {
|
||||||
|
15
hearts.js
15
hearts.js
@@ -59,17 +59,16 @@ function createHearts() {
|
|||||||
document.body.appendChild(container);
|
document.body.appendChild(container);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Array of snowflake characters
|
||||||
|
const snowflakeSymbols = ['❤️', '💕', '💞', '💓', '💗', '💖'];
|
||||||
|
|
||||||
for (let i = 0; i < 12; i++) {
|
for (let i = 0; i < 12; i++) {
|
||||||
images.forEach(imageSrc => {
|
const heartsDiv = document.createElement("div");
|
||||||
const heartsDiv = document.createElement("div");
|
heartsDiv.className = "hearts";
|
||||||
heartsDiv.className = "hearts";
|
|
||||||
|
|
||||||
const img = document.createElement("img");
|
|
||||||
img.src = imageSrc;
|
|
||||||
|
|
||||||
heartsDiv.appendChild(img);
|
heartsDiv.appendChild(img);
|
||||||
container.appendChild(heartsDiv);
|
container.appendChild(heartsDiv);
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user