Browse Source

scroll 1 pixel ahead

responsive
Georg Hopp 9 years ago
parent
commit
1f32c7714b
  1. 2
      app/assets/javascripts/parallax.coffee

2
app/assets/javascripts/parallax.coffee

@ -12,7 +12,7 @@ App.init = ->
$target = $(this.hash) $target = $(this.hash)
if $target.length if $target.length
$(this).click -> $(this).click ->
$('html, body').animate({scrollTop: $target.offset().top}, 1000)
$('html, body').animate({scrollTop: $target.offset().top+1}, 1000)
return false return false
App.scroll = -> App.scroll = ->

Loading…
Cancel
Save