Skip to content

Instantly share code, notes, and snippets.

@rweeks
Created April 26, 2012 19:03
Show Gist options
  • Save rweeks/2502030 to your computer and use it in GitHub Desktop.
Save rweeks/2502030 to your computer and use it in GitHub Desktop.
Using the pulse function
function drop_target_enter(e) {
var $dt = $(context.target_id)
$dt.addClass('dt-entered');
pulse($dt,
500,
'linear',
{opacity: 0.25},
{opacity: 1},
function() {
return $dt.hasClass('dt-entered') == false;
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment