Jump to content
Search Community

Jeff840108

Members
  • Posts

    2
  • Joined

  • Last visited

Jeff840108's Achievements

  1. Thank you! It works now! Originally, I thought using kill() when calling gsap.context() would be better for clearing animation effects (?), but it turns out that revert() is a better option.
  2. I create a simple demo for this issue. https://stackblitz.com/edit/nuxt-starter-nsqfvz?file=pages/index.vue I use scrollTrigger in gsap.matchMedia(), 1. if I add the "pin" in home page (pages/index.vue), 2. and then go to other pages (pages/page2.vue) 3. resize with different breakpoint it will show this kind of error, Uncaught TypeError: trigger.revert is not a functio After I back to the home page, the scrollTrigger will not work anymore. And seems the scrollTrigger should be killed in "onUnmounted" ? Thank you~~~
×
×
  • Create New...