Jump to content


Help with Slide or swipe transitions with GSAP + Barba JS

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



Link to comment
Share on other sites

I read your question a few times but I still don't quite understand what you're asking. We don't support 3rd party tools like Barba.js in these forums typically (I have zero experience with it), but we'd be happy to answer any GSAP-specific questions. 

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.