jquery用
# スムーズスクロール
smoothScroll = (ref, speed = 500, easing = "swing")->
yTarget = if (ref is "#" or ref is "") then 0 else $(ref).offset().top
$("html, body").animate
scrollTop : yTarget
, speed
, easing
$ ->
# スムーズスクロールのバインド
$("a[href^='#']").on "click", (e)->
e.preventDefault()
smoothScroll $(@).attr("href")
e.stopPropagation()