Skip to content

Commit

Permalink
fix: Fixed the bug with video autoplay
Browse files Browse the repository at this point in the history
  • Loading branch information
LakioLive committed Jan 15, 2025
1 parent 3824732 commit 6546525
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/header/Header.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,18 @@ export default function Header() {
</div>
<video
src="../../../blue_shape.mp4"
autoPlay={true}
loop
autoPlay
muted
playsInline
className="hidden dark:block absolute right-0 sm:w-[30vw] sm:blur-none blur"
></video>
<video
src="../../../blue_shape_white.mp4"
autoPlay={true}
loop
autoPlay
muted
playsInline
className="block dark:hidden absolute right-0 sm:w-[30vw] sm:blur-none blur"
></video>
</header>
Expand Down

0 comments on commit 6546525

Please sign in to comment.