[#369] fix scroller
This commit is contained in:
parent
3f7457e278
commit
7d600170a3
|
@ -1,4 +1,5 @@
|
||||||
# http://sitear.ru/material/sozdaem-knopku-naverh-scroll-to-top-na-jquery
|
# http://sitear.ru/material/sozdaem-knopku-naverh-scroll-to-top-na-jquery
|
||||||
|
$(document).ready ->
|
||||||
$(window).scroll ->
|
$(window).scroll ->
|
||||||
if $(this).scrollTop() > 0
|
if $(this).scrollTop() > 0
|
||||||
$("#scroller").fadeIn()
|
$("#scroller").fadeIn()
|
||||||
|
@ -11,3 +12,5 @@ $("#scroller").click ->
|
||||||
scrollTop: 0
|
scrollTop: 0
|
||||||
, 400
|
, 400
|
||||||
false
|
false
|
||||||
|
|
||||||
|
return
|
||||||
|
|
|
@ -221,7 +221,7 @@ textarea.resize-vertical
|
||||||
|
|
||||||
#scroller
|
#scroller
|
||||||
position: fixed
|
position: fixed
|
||||||
bottom: 30px
|
bottom: 20px
|
||||||
left: 20px
|
left: 20px
|
||||||
cursor: pointer
|
cursor: pointer
|
||||||
display: none
|
display: none
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
#scroller.fa.fa-arrow-circle-up.fa-2x.text-primary
|
#scroller.fa.fa-arrow-circle-up.fa-2x.text-primary.hidden-xs
|
Loading…
Reference in New Issue