[Comentar] la animacion del like

This commit is contained in:
francisco-solis99 2022-03-10 18:06:36 -06:00
parent 091dfb5663
commit eda0371043
1 changed files with 9 additions and 9 deletions

View File

@ -19,16 +19,16 @@
hljs.highlightAll();
// ---------------------- Animation heart ------------------
const post = document.querySelector('.post__copy');
const heart = document.querySelector('.icon');
// const post = document.querySelector('.post__copy');
// const heart = document.querySelector('.icon');
post.addEventListener("click", () => {
heart.classList.add("beat");
// countEl.innerHTML = count;
setTimeout(() => {
heart.classList.remove("beat");
}, 1200);
});
// post.addEventListener("click", () => {
// heart.classList.add("beat");
// // countEl.innerHTML = count;
// setTimeout(() => {
// heart.classList.remove("beat");
// }, 1200);
// });
// ---------------------- Fix images for the content post ------------------
const imagesPost = document.querySelectorAll('.post__copy img');