@flauc
top text should have: transform: translateX(calc(50vw - {tx}vw)) where {tx} is offset from bottom
bottom text should have: transform: translateX(calc(-50vw + {bx}vw)) where {bx} is offset from bottom
Example behaviour:
user scrolls from top of the page to bottom
top element gets into view, its {tx} value is close to 0
user continues scrolling down, {tx} value continues to increase
once top text reaches top of the screen, its {tx} value is close to 100
@flauc top text should have:
transform: translateX(calc(50vw - {tx}vw))
where{tx}
is offset from bottom bottom text should have:transform: translateX(calc(-50vw + {bx}vw))
where{bx}
is offset from bottomExample behaviour:
{tx}
value is close to0
{tx}
value continues to increase{tx}
value is close to100
Same thing is done for
{bx}