Last active
September 15, 2024 06:03
-
-
Save kiritocode1/3ccfff19360215873f71fc3c91559ae9 to your computer and use it in GitHub Desktop.
replicating youtube effect in a speedrun : 2 hrs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use client" | |
import { FC, useEffect , useRef} from 'react' | |
interface pageProps { | |
} | |
const Page: FC<pageProps> = ({ }) => { | |
return ( | |
<div className="flex min-h-screen bg-black relative items-center justify-center min-w-full"> | |
<video | |
className="w-[600px] max-w-full h-auto absolute z-20 translate-x-1/2 translate-y-[60%] scale-[1.5_1.3] rounded-[30%] blur-[100px] saturate-200 opacity-50" | |
autoPlay | |
loop | |
muted | |
playsInline | |
id="videoGojo" | |
> | |
<source | |
src="/videos/gojo.mp4" | |
type="video/mp4" | |
/> | |
</video> | |
{/* copy above code and paste below code */} | |
<video | |
className="w-[600px] max-w-full h-auto absolute z-30 " | |
autoPlay | |
loop | |
muted | |
playsInline | |
id="videoGojo" | |
> | |
<source | |
src="/videos/gojo.mp4" | |
type="video/mp4" | |
/> | |
</video> | |
</div> | |
); | |
} | |
export default Page |
Author
kiritocode1
commented
Sep 14, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment