Lottie animation with "autoplay" + "scroll" intro?

Hi!

How can I configure the player as follows?

1st When the page loads, run play until frame 50.
2nd Wait for the SCROLL and animate as the page scrolls.

Is it possible to animate this way? Lottie animation with “autoplay” + “scroll” intro?

I’m using this this code, but it only works if I start scrolling, I need that as soon as it’s loaded it starts playing.

How can I adjust this?

<script src="https://unpkg.com/@lottiefiles/lottie-player@latest/dist/lottie-player.js"></script>

<script src="https://unpkg.com/@lottiefiles/lottie-interactivity@latest/dist/lottie-interactivity.min.js"></script>

<lottie-player src="JSON" background="transparent" speed="1" id="cult"></lottie-player>

<script>LottieInteractivity.create({
    player: "#cult",
    mode:"scroll",
    actions: [
        {
            visibility:[-10,0.44],
            type: "play",
            frames: [0, 180]
        },
        {
            visibility:[0.45,1.0],
            type: "seek",
            frames: [180, 300]
        }
    ]
});</script>
<script>
let player = document.querySelector("lottie-player");

window.onload = function(){
    player.play();
}
</script>

This code plays on everything, not just up to Frame 180 like I need.