Skip to content

Commit

Permalink
[perf] 비디오 화질 개선
Browse files Browse the repository at this point in the history
  • Loading branch information
darkdulgi committed Aug 1, 2024
1 parent c7a1e74 commit 8033fc5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 7 deletions.
Binary file removed src/introSection/car-spin.mp4
Binary file not shown.
Binary file added src/introSection/car-spin.webm
Binary file not shown.
8 changes: 1 addition & 7 deletions src/introSection/index.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import useScrollTransition from "@/common/useScrollTransition.js";
import LineHighlight from "./LineHighlight.jsx";
import style from "./index.module.css";
import SpinningCarVideo from "./car-spin-small.webm";
import SpinningCarVideo from "./car-spin.webm";
import Pointer from "./pointer.svg";
import { useEffect, useRef, useState } from "react";

Expand Down Expand Up @@ -46,12 +46,6 @@ function IntroSection() {
};

useEffect(() => {
if (
videoRef.current &&
Math.abs(videoRef.current.currentTime - videoTimeline) > 0.1
) {
videoRef.current.currentTime = videoTimeline;
}
videoRef.current.currentTime = videoTimeline;
}, [videoTimeline]);

Expand Down

0 comments on commit 8033fc5

Please sign in to comment.