From 6f3b09caa4e092d68f355611d936519effa91878 Mon Sep 17 00:00:00 2001 From: Dilshad <134768995+ShadBalti@users.noreply.github.com> Date: Thu, 26 Oct 2023 15:24:59 +0500 Subject: [PATCH] Update main.js add animation class --- main.js | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/main.js b/main.js index 479a05a..5e23bc4 100644 --- a/main.js +++ b/main.js @@ -95,4 +95,23 @@ ctx.drawImage(image, -image.width / 2, -image.height / 2); return canvas; - } \ No newline at end of file + } + + + + + + + +// 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"); +});