mirror of
https://github.com/actix/actix-website
synced 2024-12-03 20:22:13 +01:00
Scroll to active showcase on load
This commit is contained in:
parent
f657be7ae5
commit
cc236920f3
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user