Requires jQuery and owlCarousel http://jquery.com/ http://www.owlcarousel.owlgraphic.com/
$('.wrap').pageSwapper({
selector: '.wrap',
owlConfig: {
animateOut: 'zoomOut',
animateIn: 'zoomIn',
},
owlVersion: 2
});
Creates a zoomIn/Out transition on every paging. In animate the hole body, but you can use every class or id instead. Make sure these element is available on every page.
Set owlVersion to 1 if you want to use owl 1.x instead of owl 2.0.
You can use all options from owl-carousel, except autoHeight and items. If you add animate.css, you have a lot more animations available: http://daneden.github.io/animate.css/
psw-beforeopen -> Before opening a new url
psw-loadstart -> After begin of ajax-request (not fired if loading from cache)
psw-loadcomplete -> After loading is complete
jQuery('.selector').on('callback-name', function(e, args) {
console.info(args);
});
'container' : container,
'oldTab' : currentTab,
'newTab' : newTab,
'url': url
'currentUrl' : currentUrl
psw-beforeopen has also clickEvent in args.