From 14ba50d1596b617019671b8fd864e41e74e36b24 Mon Sep 17 00:00:00 2001 From: skullxcode Date: Thu, 30 Jul 2026 00:55:19 +0530 Subject: [PATCH] fixed image --- assets/interactivity.js | 9 ++++----- dist/index.html | 10 +++++----- index.html | 6 +++--- 3 files changed, 12 insertions(+), 13 deletions(-) diff --git a/assets/interactivity.js b/assets/interactivity.js index c0be331..3ddc0c8 100644 --- a/assets/interactivity.js +++ b/assets/interactivity.js @@ -16,14 +16,13 @@ document.addEventListener("DOMContentLoaded", () => { const heroSection = document.getElementById('hero-section'); if (heroImg && heroSection) { heroSection.addEventListener('mousemove', (e) => { - const x = (window.innerWidth / 2 - e.pageX) / 25; - const y = (window.innerHeight / 2 - e.pageY) / 25; - // The hero img has md:scale-125, so we incorporate a base scale - heroImg.style.transform = `translate(${x}px, ${y}px) scale(1.15)`; + const x = (window.innerWidth / 2 - e.pageX) / 40; + const y = (window.innerHeight / 2 - e.pageY) / 40; + heroImg.style.transform = `translate(${x}px, ${y}px)`; heroImg.style.transition = 'transform 0.1s ease-out'; }); heroSection.addEventListener('mouseleave', () => { - heroImg.style.transform = `translate(0px, 0px) scale(1.0)`; + heroImg.style.transform = `translate(0px, 0px)`; heroImg.style.transition = 'transform 0.5s ease-out'; }); } diff --git a/dist/index.html b/dist/index.html index 8a9394b..a849098 100644 --- a/dist/index.html +++ b/dist/index.html @@ -90,9 +90,9 @@ "url": "https://hackathon-website-sooty-delta.vercel.app/" } } -] +] - + @@ -192,12 +192,12 @@

+
-
+
@@ -217,7 +217,7 @@

+ Omnikon community hero graphic

diff --git a/index.html b/index.html index 5406559..f67cf93 100644 --- a/index.html +++ b/index.html @@ -193,12 +193,12 @@

+
-
+
@@ -218,7 +218,7 @@

+ Omnikon community hero graphic