Last active
August 29, 2015 14:01
-
-
Save carlosrojaso/d1ca2b30b0a72361e126 to your computer and use it in GitHub Desktop.
JQ .animate()
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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