Hi everyone,
I am struggling at a video scroll animation.
I would like to change the size of the video depending on the scrolling of the user. Scrolling down, increasing, scrolling up, decreasing. This works in general great.
But I have 2 problems.
1.: When I do not scroll completely to the end, the page scrolls automatically back to the top.
2.: The boarder radius overshoots at the end to 0px and comes right after back to 1.5 rem.
What am I doing wrong? I tested it on Safari and Chrome (Mac OS)
https://codepen.io/simgy/pen/PogqBQB