Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -462,6 +462,7 @@
width: 100%;
padding: 10px 10px 60px !important; /* Extra bottom padding for pagination dots */
overflow: hidden !important;
touch-action: pan-y;
}

.swiper-slide {
Expand Down
6 changes: 4 additions & 2 deletions src/pages/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@ import React, { useEffect, useState, useRef } from "react";
import { Link, useLocation } from "react-router-dom";
import { motion } from "framer-motion";
import { Swiper, SwiperSlide } from "swiper/react";
import { Autoplay, Pagination } from "swiper/modules";
import { Autoplay, Pagination, Mousewheel } from "swiper/modules";

// Import Swiper styles
import "swiper/css";
import "swiper/css/pagination";
import "swiper/css/navigation";

import {
Sparkles,
Expand Down Expand Up @@ -384,7 +385,8 @@ export const Home = () => {
{/* Feature slider using Swiper JS */}
<div className="w-full max-w-6xl mx-auto px-6">
<Swiper
modules={[Autoplay, Pagination]}
modules={[Autoplay, Pagination, Mousewheel]}
mousewheel={{ forceToAxis: true }}
spaceBetween={24}
slidesPerView={1}
autoplay={{
Expand Down
Loading