Created
February 3, 2012 00:10
-
-
Save Nully/1726647 to your computer and use it in GitHub Desktop.
いもむし右にいくよ!
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
setInterval(function(){ | |
var imo = $("#imomushi"); | |
imo.animate({ | |
width: imo.width() + 10, | |
right: imo.width() | |
}, function(){ | |
imo.animate({ | |
width: imo.width() - 10, | |
left: parseInt(imo.css("left").replace("px")) - 10 | |
}) | |
}); | |
}, 2000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment