Skip to content

Commit

Permalink
fix(genesis landing): fix drop clipping issue
Browse files Browse the repository at this point in the history
  • Loading branch information
rulfo71 committed Sep 27, 2022
1 parent 84a9043 commit 075f465
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/Genesis/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ export default function Genesis() {
// calculate ring background img position and opacity
let backgroundImgPosition = `${scrollPosition}px`
let dropPosition = dropRef?.current?.offsetTop
let opacityBackground = 1 - scrollPosition / dropPosition
let opacityBackground =
1 - scrollPosition / (dropPosition - window.innerHeight)
let displayBackground = scrollPosition > dropPosition ? 'none' : 'block'

const { dropImgWidth, backgroundDropPosition, displaybackgroundDrop } =
Expand Down

0 comments on commit 075f465

Please sign in to comment.