Howdy!
I am using Barba.js on my Webflow project which is containing various IX2 interactions. I am looking for someone who can successfully implement Barba.js for the transition between pages while also making sure the IX2 transitions work on either side of the page transition.
I am using the following Barba.JS code as a starting point:
$('document').ready(function(){
var transEffect = Barba.BaseTransition.extend({
start: function(){
this.newContainerLoading.then(val => this.fadeInNewcontent($(this.newContainer)));
},
fadeInNewcontent: function(nc) {
nc.hide();
var _this = this;
$(this.oldContainer).fadeOut(300).promise().done(() => {
nc.css('visibility','visible');
nc.fadeIn(300, function(){
_this.done();
})
});
}
});
Barba.Pjax.getTransition = function() {
return transEffect;
}
Barba.Pjax.start();
});