# ScrollTrigger in Observable: bouncing and jumping?

**URL:** <https://talk.observablehq.com/t/scrolltrigger-in-observable-bouncing-and-jumping/6129>\
**Category:** Help\
**Created:** [January 26, 2022, 7:47pm UTC](https://talk.observablehq.com/t/scrolltrigger-in-observable-bouncing-and-jumping/6129 "2022-01-26T19:47:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tututwo](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/tututwo/32/5972_2.png) [@tututwo](https://talk.observablehq.com/u/tututwo)\
**Post date:** [January 26, 2022, 7:47pm UTC](https://talk.observablehq.com/t/scrolltrigger-in-observable-bouncing-and-jumping/6129/1 "2022-01-26T19:47:59Z")

</div>

Hi friends, I am writing a short tutorial about how to use GSAP’s ScrollTrigger in Observable, but in the actual scroll-animated data viz, there existing some bouncing/shaking of the whole cell while scrolling…

> **[GSAP ScrollTrigger in Observable](https://observablehq.com/@tututwo/gsap-scrolltrigger-in-observable)**
>
> Inspired by pstuffa‘s Scrollytelling for Observable and Will Chase's Scrollytelling with GSAP ScrollTrigger, I figured that since I prototype a lot on Observable, maybe I can try to play with ScrollTrigger in Observable. You can actually learn...

This might be more of a GSAP problem too? I tried this [solution](https://greensock.com/forums/topic/26335-scrolltrigger-pin-jumpssnaps-on-triggering/) and it didn’t work. Therefore, I’m here. I would like to know if I should write anything else specific to Observable?

Many thanks ahead.

---

<div class="post-metadata">

**Author:** ![hellonearthis](https://yyz2.discourse-cdn.com/flex030/user_avatar/talk.observablehq.com/hellonearthis/32/3935_2.png) [@hellonearthis](https://talk.observablehq.com/u/hellonearthis)\
**Post date:** [January 27, 2022, 12:43pm UTC](https://talk.observablehq.com/t/scrolltrigger-in-observable-bouncing-and-jumping/6129/2 "2022-01-27T12:43:29Z")

</div>

I see that if I load the notebook on my 4k screen I get the bouncies (chrome bounces more than firefox) but when I put the notebook onto my 1080p display I get no bouncies.

By using em instead of pixels the bounce also goes.

```auto
  const tween = gsap.to(div.querySelector(".orange p"), {
      scrollTrigger: {
        trigger: div.querySelector(".orange"), 
        scroller: div,
        markers: true,
        start: "top center",
        end: "top 150em",
        scrub: true
      },

```

So I guess it’s some issue with the display pixel density (which is often the problem).

Update: Swapping the notebook back and forth between displays broke it again ☹ until the cell was rerun, sometimes. It seems intermittent.
