Skip to content

Instantly share code, notes, and snippets.

@naotone
Last active December 17, 2015 12:59
Show Gist options
  • Save naotone/5613472 to your computer and use it in GitHub Desktop.
Save naotone/5613472 to your computer and use it in GitHub Desktop.
jQuery hover for appended objects
jQuery('.content').on('mouseover', ->
jQuery(this).stop().css(opacity: 0.3).animate
opacity: 0.8
, 300
).on 'mouseout', ->
jQuery(this).stop().animate
opacity: 1
, 300
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment