Skip to content

Commit

Permalink
Update main.js add animation class
Browse files Browse the repository at this point in the history
  • Loading branch information
ShadBalti authored Oct 26, 2023
1 parent 177e79e commit 6f3b09c
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,23 @@
ctx.drawImage(image, -image.width / 2, -image.height / 2);

return canvas;
}
}







// Add a script to apply animations when the page loads
document.addEventListener("DOMContentLoaded", function () {
// Get the elements to animate
const ownerImage = document.querySelector(".owner-image");
const ownerBio = document.querySelector(".owner-bio");
const socialLinks = document.querySelector(".social-links");

// Add a class to trigger the animations
ownerImage.classList.add("show");
ownerBio.classList.add("show");
socialLinks.classList.add("show");
});

0 comments on commit 6f3b09c

Please sign in to comment.