Sha256: 7eb31a660a96bf64ae521f66ed00f934f50e1eaf540de63466f310b2633cb5cc

Contents?: true

Size: 328 Bytes

Versions: 1

Compression:

Stored size: 328 Bytes

Contents

class @Utilities

  # settimeout
  @delay: (ms, func) -> setTimeout func, ms

  # smoothscroll
  @scroll_to: (area, modifier, callback) ->
    modifier = modifier || 0
    go_to_position = $(area).offset().top
    $("html,body").stop()
    $("html,body").animate
      scrollTop: go_to_position + modifier
    , "slow", callback

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
thesis-0.1.3 app/assets/javascripts/thesis/utilities.coffee