Guest User

Untitled

a guest
Mar 21st, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. '$(document).ready(function(){
  2. function loop() {
  3.  
  4. $('#clouds').animate({left: '+=1400',},50000, 'linear', function(){
  5. loop();
  6. });
  7.  
  8. < div id="clouds">< img border="0" alt="animated clouds" src="/images/clouds.png" />< /div>
  9.  
  10. #clouds {
  11. position:absolute;
  12. z-index:500;
  13. right:0px;
  14. top:10px;
  15. }
  16.  
  17. $('#clouds').css({right:0});
  18.  
  19. $(document).ready(function() {
  20. function loop() {
  21. $('#clouds').css({right:0});
  22. $('#clouds').animate ({
  23. right: '+=1400',
  24. }, 5000, 'linear', function() {
  25. loop();
  26. });
  27. }
  28. loop();
  29. });
  30.  
  31. $(document).ready(function() {
  32.  
  33. $('#clouds').click(function() {
  34. loop();
  35. });
  36.  
  37. function loop(){
  38. alert('a');
  39. $('#clouds').animate({
  40. opacity: 0.25,
  41. left: '+=1400',
  42. height: 'toggle'
  43. }, 5000, 'linear', function() {
  44. loop();
  45. });
  46.  
  47. }
  48.  
  49. });
  50.  
  51. <div id="clouds"><img border="0" alt="animated clouds" src="../img/image.png" /></div>
  52.  
  53. function looping() {
  54. $('.loader').fadeOut(1000);
  55. $('.loader').fadeIn(1000);
  56. setTimeout(function(){
  57. looping();
  58. }, 10);
  59. }
  60.  
  61. <div class='loader'>Loading...</div>
Add Comment
Please, Sign In to add comment