Jump to content
Search Community

MrWhiteSky

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by MrWhiteSky

  1. Yes I have see the install helper docs, I did a npm install gsap After I have try to import like this : import { gsap } from "gsap"; But in my browser I get the error : Uncaught TypeError: Failed to resolve module specifier "gsap". Relative references must start with either "/", "./", or "../". So it's why I have try to call directly the .js file like my previous post. Have you an idea of the problem ? Thanks
  2. Hi, I try to import gsap with modern js (no bundler), like this : import {gsap} from "../../node_modules/gsap/dist/gsap.min.js"; But I get this error : Uncaught SyntaxError: The requested module '../../node_modules/gsap/dist/gsap.min.js' does not provide an export named 'gsap' The import can work without bundler ? Thanks
  3. Thank you a lot for your speed answer, for me "limitCallbacks" is the perfect solution, it only fire the event for the elements on the screen (and not the elements alredy scrolled). Thanks
  4. Hi, I have a problem when I use batch method from scrollTrigger, when I begin on the top of the page and I scroll to the bottom all is working well, but if I refresh a page (and the scroll position is keeping), or if I use an html achor (exemple.com/home#bloc3), or if I directly set a position with scrollTop method, In all this cases I need to wait all the "bloc" create before, have finished the "stagger" time before to see the animation (see the codepen, you will see some seconds before the animation start). Have you an idea to prevent this problem ? Thanks
×
×
  • Create New...