Hi all,
Very excited to see v2 out!
Just wondering what's the best way transition to another page via a function?
I'd like to achieve something like this, but it won't work with barba. Probably a stupid mistake my end, but I've never done this in ajax without actually clicking links.
function goToAboutPageWithDelay () {
setTimeout(function() {
window.location.href = "about.html";
}, 500);
}
var clickAndHoldTL = new TimelineMax({
paused:true,
onComplete: goToAboutPageWithDelay();
});
Cheers!
Hello @smallio ,
check the .go method:
https://barba.js.org/docs/v2/api/classes/core.core-1.html#go
Hi @smallio,
Do not hesitate to join the Slack channel for questions about how to use barba.js. :)
2.x, you have barba.go()1.x, you have Barba.Pjax.goTo()
Most helpful comment
Hi @smallio,
Do not hesitate to join the Slack channel for questions about how to use barba.js. :)
2.x, you havebarba.go()1.x, you haveBarba.Pjax.goTo()