(null);
- const { scrollYProgress } = useScroll({
- target: sectionRef,
- offset: ["start start", "end start"],
- });
- const videoY = useTransform(scrollYProgress, [0, 1], ["0px", "150px"]);
- const videoScale = useTransform(scrollYProgress, [0, 1], [1, 1.1]);
+export default function HeroVideoExpand({ onComplete }: { onComplete?: () => void }) {
+ const [isPlaying, setIsPlaying] = useState(false);
useEffect(() => {
- const expandTimer = setTimeout(() => setExpanded(true), 600);
- const hideTimer = setTimeout(() => {
- setShowLoader(false);
- onComplete?.();
- }, 1500);
- return () => {
- clearTimeout(expandTimer);
- clearTimeout(hideTimer);
- };
- }, []);
+ if (onComplete) {
+ onComplete();
+ }
+ }, [onComplete]);
return (
- <>
-
- {showLoader && (
-
-
-
-
-
- )}
-
-
-
- >
+
+
+
);
-};
-
-export default HeroVideoExpand;
+}
\ No newline at end of file