From 4697260dcc7da199f112612920ed29fa414f1208 Mon Sep 17 00:00:00 2001 From: Miran Date: Tue, 24 Dec 2024 09:15:20 +0530 Subject: [PATCH] feat: add tilt effect --- package.json | 1 + src/pages/Contact/index.jsx | 87 ++++++++++++++++---------------- src/pages/Teams/TeamMember.jsx | 91 ++++++++++++++++++---------------- 3 files changed, 95 insertions(+), 84 deletions(-) diff --git a/package.json b/package.json index eed8ed7..2e7c89a 100644 --- a/package.json +++ b/package.json @@ -26,6 +26,7 @@ "react": "^18.2.0", "react-dom": "^18.2.0", "react-fast-marquee": "^1.6.5", + "react-parallax-tilt": "^1.7.268", "react-router-dom": "^6.22.1", "react-toastify": "^10.0.4", "vite": "^5.1.0" diff --git a/src/pages/Contact/index.jsx b/src/pages/Contact/index.jsx index 7a5719c..bec560d 100644 --- a/src/pages/Contact/index.jsx +++ b/src/pages/Contact/index.jsx @@ -1,4 +1,5 @@ import { useState } from "react"; +import Tilt from "react-parallax-tilt"; import PageTransition from "@/components/PageTransition"; function Contact() { @@ -55,49 +56,51 @@ function Contact() { Contact Us -
-
-
- - Drop us a message - - - - -