Jump to content
Search Community

hectorleon

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by hectorleon

  1. 6 hours ago, OSUblake said:

    I'm all out of ideas. Any chance that you could try and recreate the issue in Codepen? If not, maybe post or send me a simplified version of what you're working on.

     

    And as a quick sanity check, I would disable all the GSAP stuff, and see if the browser has problems scrolling to the linked hash.


    Thanks for all the help, i finally recreate the issue.


    But have to be a repo, just have to clone it  ( the branch lab-without-react/  no  master) and run in your terminal:
    https://github.com/HectorLS/tibicenas-framework/blob/lab-without-react/


    $ yarn install
    $ npm run dev

     

    a tab will auto-open in your browser.
    Just click in the burger icon to display the modal.
     

    • Like 1
  2. Hi again, yes i used to play with gsap free in Codepen and i finally got a license at my company :)  
    So now i want to include it in my webpacker 
    Rails + Webpacker for bundle.



    The Point.
    Makes more sense for me then to put the gsap folder into my build system ( never in node_modules, because i used to remove his content to run yarn install again in case some package miss a dependency )

     

    If i use NPM gsap free packages

    import 'gsap/TweenLite';          //OK import
    import 'gsap/CSSPlugin';         //OK import
    import 'gsap/ScrollToPlugin'; //OK import



    But if i store gsap folder in my source folder
     

    import '../js/gsap/uncompressed/TweenLite';                            //OK import
    import '../js/gsap/uncompressed/plugins/CSSPlugin';           //  retun an error
    import '../js/gsap/uncompressed/plugins/ScrollToPlugin';  //  retun an error
    Failed to compile.
    Module not found: Error can't resolve 'TweenLite'

     

    All the files into the plugin folder return me an error.

    Same if i try this

    import TweenLite from  '../js/gsap/uncompressed/TweenLite';  //OK import
    import '../js/gsap/uncompressed/plugins/CSSPlugin';           //  retun an error
    import '../js/gsap/uncompressed/plugins/ScrollToPlugin';  //  retun an error

    :( 

     

    At the begining i thought was a webpacker issue, but now seems to me to be the files. The main differences is that in the first case i didn't use the files stored into the plugins folder. But in the second i don't have those files.

     

     

    Any solution here would be much appreciated

     

     

     

  3. Hello,

    Maybe its a silly question but i was wondering the best way to get gsap into our project.

    Because i have paid the license, now i have a src/ folder with all the files.

     

    Before that i was using nicely the npm/yarn package for the gsap free version.

    But now i have to use the local ones ?

     

    This doesn't look the best too keep my gsap plugins updated. Am i suppose to check the web for new versions ?

    Or there is a way to load this "paid" plugins into my project as a npm package.

     

    Thanks in advance.

×
×
  • Create New...