Skip to content

Commit

Permalink
animation duration fine tuned
Browse files Browse the repository at this point in the history
  • Loading branch information
accodes21 committed Dec 2, 2023
1 parent 1fd58c6 commit 02a36a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ export default function Home() {
const loader = useRef(null);
const path = useRef(null);
const initialCurve = 250;
const duration = 270;
const duration = 300;
let start;

useEffect(() => {
setPath(initialCurve)
setTimeout( () => {
requestAnimationFrame(animate)
}, 300)
}, 105)
},[])

const animate = (timestamp) => {
Expand Down

0 comments on commit 02a36a7

Please sign in to comment.