From cc236920f31b3e385e104d1f3784ca1af0d2d544 Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Sat, 26 May 2018 14:31:03 +0200 Subject: [PATCH] Scroll to active showcase on load --- static/js/actix.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/static/js/actix.js b/static/js/actix.js index 15a6990..c51b2d1 100644 --- a/static/js/actix.js +++ b/static/js/actix.js @@ -15,6 +15,9 @@ var active = $(window.location.hash); if (active.is('div.actix-feature')) { activateFeature(window.location.hash); + $('html, body').animate({ + scrollTop: $('.actix-showcase').offset().top + }, 1000); } else { activateFeature('#' + $('div.actix-feature')[0].id); }