import { Float, OrbitControls, Sphere } from "@react-three/drei" import { Canvas } from "@react-three/fiber" import { motion, useScroll, useTransform } from "framer-motion" import { useRef } from "react" function FloatingOrb() { return ( ) } export function HeroSection() { const containerRef = useRef(null) const { scrollYProgress } = useScroll({ target: containerRef, offset: ["start start", "end start"], }) const y = useTransform(scrollYProgress, [0, 1], [0, 300]) const opacity = useTransform(scrollYProgress, [0, 0.5, 1], [1, 0.5, 0]) return (
{/* Background gradient */}
{/* 3D Background */}
{/* Animated particles */}
{[...Array(20)].map((_, i) => ( ))}
{/* Content */} AI-Powered Video Creation Watch how Timeline Studio AI helps you create viral content in seconds Type your idea and let AI do the magic ✨
Download Free {/* Scroll indicator */}
) }