Jump to content
Search Community

Guillaume P.

Premium
  • Posts

    14
  • Joined

  • Last visited

Posts posted by Guillaume P.

  1. Hi Rodrigo,

    1. You want the animation to have a delay only when you reverse it ?  ==> Yes
    2. What happens if the animation is running when is toggled, there should be a delay as well ? ==> No more toggle button
    3. You still want the animation to start from the end, like in your first codepen example ? ==> No
    4. You want the animation to start going forward and after it is completed, wait one second and reverse it automatically without a button or a user triggered event ? ==> Yes exactly .. this is it !
  2. Hi Rodrigo, 

    Thank's for delay  tips !

    I also would like to keep the "first animation" because, when I add .progress(1) and .reverse(), I only have the reverse animation but not the  "first animation".

    For more clarity, I would like the first animation, then one second delay  and then launch the reverse . 

    I mean this animation with reverse after one second but without toggle to launch the reverse 

    See the Pen eYWGeGe by GreenSock (@GreenSock) on CodePen

    Thank's for your help.

     

  3. Hi, 

    Working on a preloader on Next.js, I  still have FOUC on my animation.

    Vercel : https://preloader-next-iend9lhi2-devmrobot.vercel.app/

    Stackblitz https://stackblitz.com/edit/nextjs-anp715?file=pages%2Fpreloader.js 


    I use useLayoutEffect but no effect  and I have a Warning on my console :

    Quote

    "useLayoutEffect does nothing on the server, because its effect cannot be encoded into the server renderer's output format. This will lead to a mismatch between the initial, non-hydrated UI and the intended UI. To avoid this, useLayoutEffect should only be used in components that render exclusively on the client. See https://reactjs.org/link/uselayouteffect-ssr for common fixes."

     

    I also tried to use this Tip, but I don't know how to adapt it for Next.js

     

    How to avoid this problem ?

    Thank's !

     

  4. Rodrigo,

    I tried like this but it doesn't work : 

     

    1/ Create an .npmrc file like this:

    registry=https://npm.greensock.com
    @gsap:registry=https://npm.greensock.com
    //npm.greensock.com/:_authToken=NPM_TOKEN
    # //npm.greensock.com/:_authToken=${NPM_TOKEN}

    2/ Create a .env.development.local file and add token + add it to .gitignore (.env*.local)

    3/ Run npm install gsap@npm:@gsap/shockingl as mentionned in my account.

     

    And I have this error : 

    930247648_Capturedecran2022-10-12a22_29_59.thumb.png.a3b6ee33182915c571b86049cedd4fbd.png

     

    If put my token directly in .npmrc file, it works.

     

    So, I dit it & Run npm install gsap@npm:@gsap/shockingl . It install in package .json : 

     

    "dependencies": {
    "@types/styled-components": "^5.1.26",
    "gsap": "npm:@gsap/shockingly@^3.11.3",

     

    then, I uncomment the final line in the .npmrc file and comment out the third line. 

    Then, I push on github & add environment variable on Vercel.

     

    I still have the same deploy error :sad: on Vercel

     

    image.png.092ce203282f10687b0f081d21402b29.png

  5. Hi, 

    Thank's for your reply.

    I change the import bu I still have the error  : 

    import ScrollTrigger from "gsap/dist/ScrollTrigger";
    
    //also tried : 
    import { ScrollTrigger } from "gsap/dist/ScrollTrigger";

     

    I also add in tsconfig.js : 

    {
      "compilerOptions": {
        ...
      },
      "files": [
        "node_modules/gsap/types/index.d.ts"
      ]
    }

     

    1502426033_pbgsap.thumb.jpg.173b7407a0e89e55d365824e42239735.jpg

     

     

  6. Hi, 

     

    I have install Gsap via NPM following directions for greensock members using (I'm greensock members :)/ also followed the video step by step : module install video 

     

    As mentioned in various topics :  Next.js does not support ES Modules by default.  So I import UMD files from the dist folder.

    ;202434006_Capturedecran2022-10-10a23_20_50.thumb.png.5b59ed96375597e9eb3f0023664b7aaa.png

     

    But still I have this message when I npm run build :

     

    2029789482_Capturedecran2022-10-10a23_26_03.thumb.png.c448e900348b8cc7f8938edb0dda26fe.png

     

    and also an error message in Vercel : 

    704076315_Capturedecran2022-10-10a23_26_16.thumb.png.3baa162e25ed77dcf06aa42039c8e52d.png

     

    Any ideas please ?

    Thank's

×
×
  • Create New...