From 87283fa264ca3c670133babefd90fae2ee1f0e40 Mon Sep 17 00:00:00 2001 From: artem avetisyan Date: Wed, 16 Apr 2014 09:50:29 +0200 Subject: [PATCH] Animated transition on `window.history.back()` --- js/push.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/js/push.js b/js/push.js index 6aa5398..abf7201 100644 --- a/js/push.js +++ b/js/push.js @@ -22,9 +22,10 @@ var maxCacheLength = 20; var cacheMapping = sessionStorage; var domCache = {}; + // Change these to unquoted camelcase in the next major version bump var transitionMap = { - slideIn : 'slide-out', - slideOut : 'slide-in', + 'slide-in' : 'slide-out', + 'slide-out' : 'slide-in', fade : 'fade' }; @@ -239,7 +240,7 @@ url : window.location.href, title : document.title, timeout : options.timeout, - transition : null + transition : options.transition }); }