Is there a way to apply linear gradients from both the top and bottom to create smoother lines when text is scrolled?
I was able to achieve a linear gradient at the bottom using this code:
<div className="vsebina" style={{WebkitMaskImage:'linear-gradient(180deg, #000 97%, transparent)'}}>
.
However, I am unsure how to apply another gradient to the top as they do not seem to work together:
WebkitMaskImage:linear-gradient(0deg, #000 97%, transparent)
Check out the demo here: https://stackblitz.com/edit/react-ts-stvhtr?file=App.tsx