# How to play until half of the animation and only continue playing after scrolling half the page?

**URL:** https://forum.lottiefiles.com/t/how-to-play-until-half-of-the-animation-and-only-continue-playing-after-scrolling-half-the-page/3014
**Category:** Lottie in Web
**Created:** [June 27, 2022, 1:30pm UTC](https://forum.lottiefiles.com/t/how-to-play-until-half-of-the-animation-and-only-continue-playing-after-scrolling-half-the-page/3014 "2022-06-27T13:30:43Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![marconi](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.lottiefiles.com/marconi/32/2679_2.png) [@marconi](https://forum.lottiefiles.com/u/marconi)
#### Post date: [June 27, 2022, 1:30pm UTC](https://forum.lottiefiles.com/t/how-to-play-until-half-of-the-animation-and-only-continue-playing-after-scrolling-half-the-page/3014/1 "2022-06-27T13:30:43Z")

</div>

Why doesn’t this command work?

```auto
<script>LottieInteractivity.create({
    player: "#cult",
    mode:"scroll",
    container: "#hero",
    actions: [
        {
            visibility:[-10,0.44],
            type: "play",
            frames: [0, 180]
        },
        {
            visibility:[0.45,1.0],
            type: "play",
            frames: [182, 300]
        }
    ]
});</script>

```
