Hi there,
I’m not sure I fully understand what you mean.
The parallax script was written for the background-image property.
Are you trying to apply it on a specific <img>
element (featured image)? If so that’s quite tricky to do as you’ll have to control the <img>
actually position on the page and it this may potentially cause CLS issues.
If I may suggest:
You can make the <img>
tag behave like a background-image by setting its position to “absolute” and it’s parent element to “relative” with a defined height.
You then apply the script that “parallaxes” its top or bottom position.
As for providing the actual custom script, this kind of site customization is outside of our scope, unfortunately.