Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

Commit

Permalink
fix: fix switch animation (#454)
Browse files Browse the repository at this point in the history
  • Loading branch information
re-taro authored Oct 17, 2024
1 parent 636f807 commit f0eba61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
with:
urls: |
${{ inputs.url }}
${{ inputs.url }}/top
${{ inputs.url }}/events
configPath: ./.github/lighthouserc.json
uploadArtifacts: true
Expand Down
5 changes: 3 additions & 2 deletions app/routes/_index/route.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,19 @@ export default function Page(): ReactNode {
})
.set(landingRef.current, {
display: "none",
onComplete: () => {
navigate("/top");
},
});
});

const click = () => {
animation();
navigate("/top");
};

const kewdown = (e: KeyboardEvent) => {
if (e.key === "Enter") {
animation();
navigate("/top");
}
};

Expand Down

0 comments on commit f0eba61

Please sign in to comment.