Posted By

surfeurX on 11/11/09


Tagged


Versions (?)

animation up-down


 / Published in: JavaScript
 

  1. var flag = true;
  2. function animate()
  3. {
  4. if(flag){
  5. $("#mascotteLogo").animate({
  6. top: "35px"
  7. }, 3000 );
  8. flag = false;
  9. }else{
  10. $("#mascotteLogo").animate({
  11. top: "10px"
  12. }, 3000 );
  13. flag = true;
  14. }
  15. }
  16.  
  17. $(function(){
  18. setInterval ( "animate()", 3000 );
  19. });

Report this snippet  

You need to login to post a comment.