Skip to content

Commit

Permalink
Merge branch 'recommend_fee' of github.com:taikochain/taiko-mono into…
Browse files Browse the repository at this point in the history
… recommend_fee
  • Loading branch information
cyberhorsey committed Dec 20, 2022
2 parents 95870b9 + d2f1732 commit 4478fb4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/website/src/components/Hero/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ export default function Hero() {
// Enlarges and decreases the opacity of the taikoGeom image upon scroll
if (typeof window !== "undefined") {
const changeTaikoGeom = () => {
// only do animation on home page
if (window.location.pathname !== "/") {
return;
}

const taikoGeom = document.getElementById("taikoGeom");
const taikoGeomParent = document.getElementById("taikoGeomParent");
const elementHeight = window.pageYOffset;
Expand Down

0 comments on commit 4478fb4

Please sign in to comment.