Skip to content

Instantly share code, notes, and snippets.

@trosage
Created May 9, 2012 16:43
Show Gist options
  • Save trosage/2646479 to your computer and use it in GitHub Desktop.
Save trosage/2646479 to your computer and use it in GitHub Desktop.
class NavLabels
constructor: () ->
$label = $(this).find(".nav-label-container")
mouseIn = () ->
$label.animate {
opacity: 1
top: 45
}, 400
mouseOut = () ->
$label.animate {
opacity: 0
top: 35
}, 400
$(".global-nav a").hover(mouseIn, mouseOut)
Featurette.register("nav-labels", NavLabels)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment