fix some bug in some blocks
This commit is contained in:
+18
-3
@@ -1,7 +1,6 @@
|
||||
"use client";
|
||||
|
||||
import AutoScroll from "embla-carousel-auto-scroll";
|
||||
import Autoplay from "embla-carousel-autoplay";
|
||||
import { ArrowRight } from "lucide-react";
|
||||
import React from "react";
|
||||
|
||||
@@ -186,7 +185,15 @@ const Hero230 = ({ className }: Hero230Props) => {
|
||||
|
||||
<div className="relative mx-auto flex items-center justify-center">
|
||||
<Carousel
|
||||
plugins={[AutoScroll({ playOnInit: true })]}
|
||||
plugins={[
|
||||
AutoScroll({
|
||||
speed: 1,
|
||||
startDelay: 0,
|
||||
playOnInit: true,
|
||||
stopOnInteraction: false,
|
||||
stopOnMouseEnter: false,
|
||||
}),
|
||||
]}
|
||||
opts={{ loop: true, align: "start" }}
|
||||
>
|
||||
<CarouselContent className="ms-0">
|
||||
@@ -211,7 +218,15 @@ const Hero230 = ({ className }: Hero230Props) => {
|
||||
</div>
|
||||
<div className="relative mx-auto -mt-12 flex items-center justify-center">
|
||||
<Carousel
|
||||
plugins={[Autoplay({ delay: 1500 })]}
|
||||
plugins={[
|
||||
AutoScroll({
|
||||
speed: 1,
|
||||
startDelay: 0,
|
||||
playOnInit: true,
|
||||
stopOnInteraction: false,
|
||||
stopOnMouseEnter: false,
|
||||
}),
|
||||
]}
|
||||
opts={{ loop: true, align: "start" }}
|
||||
>
|
||||
<CarouselContent>
|
||||
|
||||
Reference in New Issue
Block a user