Skip to content

Instantly share code, notes, and snippets.

@hacke2
Created Aug 26, 2014
Embed
What would you like to do?
抖动动画
$("#mark").animate({marginTop:marginTop "px"},200,function(){
$("#mark").animate({marginTop:marginTop-20 "px"},100,function(){
$("#mark").animate({marginTop:marginTop "px"},100);
});
});}else{
$("#mark").animate({marginTop:marginTop "px"},200,function(){
$("#mark").animate({marginTop:marginTop 20 "px"},100,function(){
$("#mark").animate({marginTop:marginTop "px"},100);
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment