We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5c88174 commit f12c81fCopy full SHA for f12c81f
_sass/scroll-top.scss
@@ -23,8 +23,16 @@
23
visibility: visible;
24
@include opacity(1);
25
}
26
+@media (hover:hover) {
27
+ #site-scroll-top:hover {
28
+ text-decoration: none;
29
+ color: #fff;
30
+ background: $grey;
31
+ border-color: $light-grey;
32
+ }
33
+}
34
-#site-scroll-top:hover {
35
+#site-scroll-top:active {
36
text-decoration: none;
37
color: #fff;
38
background: $grey;
assets/js/scrolltop.js
@@ -4,9 +4,9 @@ $(function () {
4
})
5
6
function scrollTop () {
7
- $('body').animate({
+ $('html, body').stop().animate({
8
scrollTop: $($(this).attr('href')).offset().top
9
- }, 500)
+ }, 500, 'swing')
10
return false
11
12
0 commit comments