How to make container remain fixed or sticky until scroll amount is met

I am trying to recreate this effect in the hero https://the-goonies.webflow.io/ in WordPress using a builder, where the section stays the same/sticky until the user has scrolled a number of times/all the scroll effects are complete. Any advice on how I can best achieve this? Or if there is a plugin that does this?

From inspect, all I can see is that the container is set to “position: sticky;” but this is not working for me in Wordpress.