mirror of
https://github.com/greflm13/StaticGalleryBuilder.git
synced 2026-02-05 11:09:26 +00:00
smooth scroll to top
This commit is contained in:
@@ -90,7 +90,7 @@ figure {
|
|||||||
.footer a img {
|
.footer a img {
|
||||||
height: 22px !important;
|
height: 22px !important;
|
||||||
margin-left: 3px;
|
margin-left: 3px;
|
||||||
vertical-align: text-bottom
|
vertical-align: text-bottom;
|
||||||
}
|
}
|
||||||
|
|
||||||
.navbar {
|
.navbar {
|
||||||
|
|||||||
@@ -182,8 +182,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function topFunction() {
|
function topFunction() {
|
||||||
document.body.scrollTop = 0;
|
window.scrollTo({ top: 0, behavior: 'smooth' })
|
||||||
document.documentElement.scrollTop = 0;
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user