Skip to content

Instantly share code, notes, and snippets.

@hacke2
Created August 26, 2014 07:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hacke2/9c7ef50e8748d7e6f3a1 to your computer and use it in GitHub Desktop.
Save hacke2/9c7ef50e8748d7e6f3a1 to your computer and use it in GitHub Desktop.
抖动动画
$("#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