Jump to content
Search Community

Help with Slide or swipe transitions with GSAP + Barba JS

sscash test
Moderator Tag

Recommended Posts

Hello Devs, 

 

Please someone to kindly help edit this fade in and out code, to slide up and down or swipe left or right page transitions with Gsap + Barba js

 

here's my code.

 

// Animation - Transition
function pageTransition() {
  var tl = gsap.timeline();

  tl.to(".main-fade", {
    duration: .4,
    ease: "Power0.easeNone",
    opacity: "0"
  });

  tl.set(".main-fade", {
    y: 0, 
    opacity: "1"
  });

  tl.set(".loading-screen", { 
    opacity: 0
  });

}

thanks

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...