Closed jacobsilver2 closed 1 year ago
@jacobsilver2 this is because there are multiple layers on top of the layer with a link. You could use z-index
to bring the link to the top, but that would break the design.
Instead, disable pointer events with pointer-events: none
on all the layers above the link.
Here's the updated Codesandbox:
Hi, I'm trying to get some text on a banner layer to be a link, and not having much luck. I've actually managed to reproduce this on the Advanced Banner example, and have provided a fork here:
https://codesandbox.io/embed/react-scroll-parallax-hero-banner-forked-gcjjhc?fontsize=14&hidenavigation=1&theme=dark
The only code I've changed so far is:
I thought maybe it was a z-index thing? But that didn't seem to work. Thanks in advance for the help.