Skip to content

Instantly share code, notes, and snippets.

Avatar
😀

Tyler Harms harmstyler

😀
View GitHub Profile
View moving_from_jquery.md

Moving from jQuery

Events

// jQuery
$(document).ready(function() {
  // code
})
View enablescrollmenu.coffee
enableScrollMenu = ->
$(".bottomscrollbar").hover (->
$this = $(this)
windowHeight = $this.prev().children().length * $this.prev().children().height()
$this.prev().animate(
scrollTop:windowHeight
,600)
), ->
# stop on unhover
$(this).prev().stop()