Skip to content

Commit

Permalink
Add delay
Browse files Browse the repository at this point in the history
  • Loading branch information
mxstbr committed Jan 17, 2024
1 parent 9f6cbe4 commit 574d457
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion website/src/components/StarOnGithub.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,13 @@ type StarOnGithubProps = {

export function StarOnGithub({ stars = 0 }: StarOnGithubProps) {
const countUpRef = useRef<HTMLSpanElement | null>(null)
useCountUp({ ref: countUpRef, start: stars - 10, end: stars, duration: 4 })
useCountUp({
ref: countUpRef,
start: stars - 10,
end: stars,
duration: 4,
delay: 4,
})

return (
<ButtonLink
Expand Down

1 comment on commit 574d457

@vercel
Copy link

@vercel vercel bot commented on 574d457 Jan 17, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

spacex-fuse – ./examples/spacex

spacex-fuse-stellate.vercel.app
spacex-fuse.vercel.app
spacex-fuse-git-main-stellate.vercel.app

Please sign in to comment.