assets/js/backwhite.js in jekyll-theme-backwhite-1.2.0 vs assets/js/backwhite.js in jekyll-theme-backwhite-2.0.0

- old
+ new

@@ -1,17 +1,18 @@ $(() => { // Menu button handling $('.bw-open').click(() => { + $('.bw-app').addClass('scroll-lock') $('.bw-back-container').addClass('visible') - $('.bw-front').animate( - {'margin-left': '100%'}, - 400, 'swing') + $('.bw-front').addClass('slided') }) $('.bw-close').click(() => { - $('.bw-front').animate( - {'margin-left': '0%'}, - 400, 'swing', - () => $('.bw-back-container').removeClass('visible')) + $('.bw-front') + .removeClass('slided') + .one('transitionend', () => { + $('.bw-app').removeClass('scroll-lock') + $('.bw-back-container').removeClass('visible') + }) }) // Dynamic Tables $('.bw-front table').each((_, table) => { // Find longest \ No newline at end of file