Last active
December 25, 2017 17:29
-
-
Save elinwibe/d5a97bbe250a8d2b282bf3005ed86b2d to your computer and use it in GitHub Desktop.
JQuery loop for bouncing element
This file contains 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
$(document).ready(function() { | |
function loop() { | |
$('#').animate({"top": 0}); | |
$('#').animate({ | |
"top": 20, | |
}, 1500, function() { | |
loop(); | |
}); | |
} | |
loop(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment