Jump to content
Search Community

EduDev

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by EduDev

  1. I did add gsap using npm install gsap. The tutorial I am using is related to gsap and he uses it in the tutorial. This is the link incase you want to see the video: 

    My goal is for when I click a button that redirects me to another page, there is an animation for that. I understand you can not do anything for me or have the time to walk me threw it step by step. Could you possibly help me with an article or video that you know could help get this done for me?

  2. Hello,

    I'm new to gsap and loving what it can do. I was following a tutorial for page transitions and I have run into errors with TimelineLite. I understand in version 3 it's recommended to use gsap.timeline instead. Are you able to help me update the following code?

    import Highway from "@dogstudio/highway";
    
    import { TimelineLite } from "gsap";
    
    class Fade extends Highway.Transition {
    
    in({ from, to, done }) {
    
    const tl = new TimelineLite();
    
    tl.fromTo(to, 0, 5, { left: "-100%", top: "50%" }, { left: "0%" }).fromTo(
    
    to,
    
    0.5,
    
    { height: "2vh" },
    
    {
    
    height: "90vh",
    
    top: "10%",
    
    onComplete: function () {
    
    done();
    
    },
    
    }
    
    );
    
    }
    
    out({ from, done }) {
    
    done();
    
    }
    
    }
    
    export default Fade;

     

×
×
  • Create New...