diff --git a/components/sections/home/AreaOfInjury.js b/components/sections/home/AreaOfInjury.js
index 4c1c7b3..c2e39f5 100644
--- a/components/sections/home/AreaOfInjury.js
+++ b/components/sections/home/AreaOfInjury.js
@@ -35,7 +35,9 @@ export default function AreaOfInjury() {
{areaOfInjuryData.slice(0, 8).map((area, index) => (
-
+
diff --git a/components/sections/home2/Banner.js b/components/sections/home2/Banner.js
index de621fe..ea51eaa 100644
--- a/components/sections/home2/Banner.js
+++ b/components/sections/home2/Banner.js
@@ -49,48 +49,48 @@ const variants = {
},
rightToLeft: {
initial: { x: '100vw', opacity: 0 },
- animate: {
- x: 0,
- opacity: 1,
- transition: {
- duration: 0.8, // adjust speed
- ease: "easeInOut" // try "easeOut", "easeIn", or custom [0.4, 0, 0.2, 1]
- }
- },
- exit: {
- x: "-100vw",
- opacity: 0,
- transition: {
- duration: 0.6,
- ease: "easeInOut"
- }
- }
+ animate: {
+ x: 0,
+ opacity: 1,
+ transition: {
+ duration: 0.8, // adjust speed
+ ease: "easeInOut" // try "easeOut", "easeIn", or custom [0.4, 0, 0.2, 1]
+ }
+ },
+ exit: {
+ x: "-100vw",
+ opacity: 0,
+ transition: {
+ duration: 0.6,
+ ease: "easeInOut"
+ }
+ }
},
};
const revealVariants = {
- hidden: {
- scaleX: 0,
- opacity: 0,
- originX: 0, // same as transform-origin: 0% 50%
- },
- visible: {
- scaleX: 1,
- opacity: 1,
- originX: 0,
- transition: {
- duration: 0.8,
- ease: "easeInOut"
+ hidden: {
+ scaleX: 0,
+ opacity: 0,
+ originX: 0, // same as transform-origin: 0% 50%
+ },
+ visible: {
+ scaleX: 1,
+ opacity: 1,
+ originX: 0,
+ transition: {
+ duration: 0.6,
+ ease: "easeInOut"
+ }
+ },
+ exit: {
+ scaleX: 0,
+ opacity: 0,
+ originX: 0,
+ transition: {
+ duration: 0.6,
+ ease: "easeInOut"
+ }
}
- },
- exit: {
- scaleX: 0,
- opacity: 0,
- originX: 0,
- transition: {
- duration: 0.6,
- ease: "easeInOut"
- }
- }
};
const transition = {
@@ -111,125 +111,126 @@ export default function Banner() {
return (
- setActiveIndex(swiper.realIndex || 0)}
- onSlideChange={handleSlideChange}
->
+ setActiveIndex(swiper.realIndex || 0)}
+ onSlideChange={handleSlideChange}
+ >
-
-
- {activeIndex === 0 && (
-
-
-
-
-
-
Begin your
-
Recovery
-
• Rehab • Strength Training • Personalized Care
-
-
- Vist Our Location
-
-
-
-
-
- )}
-
-
+
+
+ {activeIndex === 0 && (
+
+
+
+
+
+
Begin your
+
Recovery
+
• Rehab • Strength Training • Personalized Care
+
+
+ Vist Our Location
+
+
+
+
+
+ )}
+
+
-
-
- {activeIndex === 1 && (
-
-
-
-
-
-
Build Your Strength &
-
Endurance
-
• Physiotherapy • Sports Therapy • Injury Prevention
-
-
- Book Your Appointment
-
-
-
-
-
- )}
-
-
+
+
+ {activeIndex === 1 && (
+
+
+
+
+
+
Build Your Strength &
+
Endurance
+
• Physiotherapy • Sports Therapy • Injury Prevention
+
+
+ Book Your Appointment
+
+
+
+
+
+ )}
+
+
- {/* ✅ existing 3rd slide remains as 3rd */}
-
-
- {activeIndex === 2 && (
-
-
-
-
-
-
Regain Your Strength
-
Heal
-
• Pain Relief • mobility • Wellness
-
-
- Explore Our Service
-
-
-
-
-
- )}
-
-
+ {/* ✅ existing 3rd slide remains as 3rd */}
+
+
+ {activeIndex === 2 && (
+
+
+
+
+
+
Regain Your Strength
+
Heal
+
• Pain Relief • mobility • Wellness
+
+
+
Schedule a Massage
+
-
-
- {activeIndex === 3 && (
-
-
-
-
-
-
Build your Core
-
Performance
-
• Pain Relief • Active Care • Long-Term Result
-
-
- Schedule a Massage
-
-
-
-
-
- )}
-
-
+
+
+
+
+ )}
+
+
-
+
+
+ {activeIndex === 3 && (
+
+
+
+
+
+
Build your Core
+
Performance
+
• Pain Relief • Active Care • Long-Term Result
+
+
+ Explore Our Service
+
+
+
+
+
+ )}
+
+
+
+
);