Skip to content

Instantly share code, notes, and snippets.

@carlosrojaso
Last active August 29, 2015 14:01
Show Gist options
  • Save carlosrojaso/d1ca2b30b0a72361e126 to your computer and use it in GitHub Desktop.
Save carlosrojaso/d1ca2b30b0a72361e126 to your computer and use it in GitHub Desktop.
JQ .animate()
// Custom effects with .animate()
$( "div.funtimes" ).animate({
left: "+=50",
opacity: 0.25
},
300, // Duration
function() { // Callback when the animation is finished
console.log( "done!" );
}
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment