Jump to content
GreenSock

kosmikgirl

Members
  • Posts

    1
  • Joined

  • Last visited

kosmikgirl's Achievements

  1. Hello community! We are building an app with lit.dev and we are using gsap and scrollTrigger for some animations needed. I created this simple codesandbox, with some code I've found out there, to emulate what we need to do, and also to think out of the box and see if the problem is the complexity of our app, or, the integration with lit.dev. https://codesandbox.io/s/scrolltriggerlit-w9rske?file=/src/my-component.ts:817-837 According to the codesandbox and the error showed, is definitely a lit problem. If you uncomment pin: true in line 27 you will see the error Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'. As you can imagine, there is not a lot of documentation about lit and gsap/scrolltrigger out there. Maybe you can help! I've tried with refs and querys, also trying to access to the shadowRoot (that is equivalent to the query decorator) Any suggestion will help! Thanks!
×