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


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>

    player: "#cult",
    actions: [
            type: "play",
            frames: [0, 180]
            type: "seek",
            frames: [180, 300]
let player = document.querySelector("lottie-player");

window.onload = function(){

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