I've come up with a solution for my own work from 5-6 years ago, which is GradextGradext ( pure javascript and pure css, no dependency ) .
for example look at this is the word lorem inside of a <span> and will cause a horizontal gradient effect ( check the examplescheck the examples ):
well, there's another solution for it too. You should definitely check animation: trueanimation: true or even .hoverable().hoverable() method which will lead to a gradient to start based on cursor position! ( sounds cool xD )
Here you can find a working live demoHere you can find a working live demo and the original repository is here on GitHub as well, open sourcehere on GitHub as well, open source and ready to get some updates ( :D )
This is my first time ( yeah, after 5 years, you've heard it right ) to mention this repository anywhere on the Internet, and I'm excited about that!
[Update - 2019 August:] Github removed github-pages demo of that repository because I'm from Iran! Only the source code is available here tho...


