Guest User

Untitled

a guest
May 20th, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. $(".button").click(function(){
  2. $("#header").animate({top: "-50"}, "slow")
  3. $("#something").animate({height: "hide"}, "slow")
  4. $("ul#menu").animate({top: "20", left: "0"}, "slow")
  5. $(".trigger").animate({height: "show", top: "110", left: "0"}, "slow");
  6. });
  7.  
  8. $(".button").click(function(){
  9. $("#header").animate({top: "-50"}, "slow", function() {
  10. $("#something").animate({height: "hide"}, "slow", function() {
  11. $("ul#menu").animate({top: "20", left: "0"}, "slow", function() {
  12. $(".trigger").animate({height: "show", top: "110", left: "0"}, "slow");
  13. });
  14. });
  15. });
  16. });
  17.  
  18. $("#1").animate({marginTop: "100px"}, {duration: 100, queue: "global"});
  19. $("#2").animate({marginTop: "100px"}, {duration: 100, queue: "global"});
  20. $("#3").animate({marginTop: "100px"}, {duration: 100, queue: "global"});
  21.  
  22. $('.images IMG').ready(
  23. function(){
  24. $('BODY').queue(
  25. function(){
  26. $('.images').fadeTo('normal',1,function(){$('BODY').dequeue()});
  27. }
  28. );
  29. }
  30. );
  31.  
  32. $(".button").click(function(){
  33. $("#header").animate({top: "-50"}, 1000)
  34. $("#something").delay(1000).animate({height: "hide"}, 1000)
  35. $("ul#menu").delay(2000).animate({top: "20", left: "0"}, 1000)
  36. $(".trigger").delay(3000).animate({height: "show", top: "110", left: "0"}, "slow");
  37. });
  38.  
  39. $(".button").click(function(){
  40. $("#header").animate({top: "-50"}, { queue: true, duration: "slow" })
  41. $("#something").animate({height: "hide"}, { queue: true, duration: "slow" })
  42. $("ul#menu").animate({top: "20", left: "0"}, { queue: true, duration: "slow" })
  43. $(".trigger").animate({height: "show", top: "110", left: "0"}, { queue: true, duration: "slow" });
  44. });
Add Comment
Please, Sign In to add comment