Hej
Mam pewien problem, tym razem z jquery, nie animuje mi efektu jednego elementu, nagle się pojawia
http://dukov.pl/testphp

Chodzi mi o div o id 1, ten w którym jest zdjęcie piasku oraz opis. Wszystkie animacje działają, tylko ta nie, kombinuje już od 2 godzin, a nie wiem czemu tak się dzieje. W DOM zauwazyłem tylko, że jquery dodaje tylko styl display: block; Nie mam pojęcia dlaczego nie dodaje reszty.
  1. <!DOCTYPE html>
  2. <title>Test test test</title>
  3. <link rel="Stylesheet" type="text/css" href="css.css" />
  4. <script type="text/javascript" src="scripts/jquery-3.2.1.js"></script>
  5. <script type="text/javascript" src="scripts/jquery-ui.min.js"></script>
  6. <script type="text/javascript">
  7. function wait(){
  8.  
  9. $("#first").show("slide",1000);
  10. setTimeout(wait2,1100)
  11. function wait2() {
  12. $("#second").show("slide",1000);
  13. setTimeout(wait3,1100);
  14. function wait3(){
  15. $("#third").show("slide",1000);
  16. setTimeout(wait4,1100);
  17. function wait4(){
  18. $("#fourth").show("slide",1000);
  19. setTimeout(wait5,1100);
  20. function wait5(){
  21. $("#fifth").show("slide",1000);
  22. setTimeout(wait6,1100);
  23. function wait6(){
  24. $("#h3head_port").show("slide",1000);
  25. setTimeout(wait7,1100);
  26. function wait7(){
  27. /*var i;
  28. var checkIDs = (function() {
  29. var classes = document.getElementsByClassName('container_');
  30. var quandivs = classes.length;
  31.  
  32. return quandivs;
  33. }());
  34.  
  35. var divstab = new Array(checkIDs);
  36. for (i = 1; i <= checkIDs; i++)
  37. {
  38. divstab[i] = "#"+i;
  39.  
  40. */
  41. $("#1").show("blind", 1500); <-----------o tutaj jest problem
  42.  
  43. //}
  44.  
  45.  
  46. }
  47. }
  48. }
  49. }
  50. }
  51. }
  52. }
  53.  
  54.  
  55.  
  56.  
  57.  
  58. $( document ).ready(function() {
  59. $( "#top" ).show( "fold", 1000 );
  60. setTimeout(wait0, 1100);
  61. function wait0(){
  62. $("#h3head").show("slide",1000);
  63. setTimeout(wait,1100);
  64. }
  65. });
  66. </script>
  67. </head>
  68. <div id="top" class="row">
  69. <div id="title" class="container_50">
  70. <h1> test test test test</h1>
  71. </div>
  72. <nav id="nav">
  73. <ul>
  74. <li>O mnie</li>
  75. <li>Moje</li>
  76. <li>Kontakt</li>
  77. </ul>
  78. </nav>
  79. </div>
  80. <content>
  81. <div id="about" class="container">
  82. <div id="abouthead" class="header"><h3 id="h3head">O mnie</h3></div>
  83. <div id="paragrpahs" class="aboutcontent">
  84. <p class="justify"><span id="first" > TestTestTestTestTestTestTestTestTestTestTestTestTestTest.</span>
  85. <span id="second">TestTestTestTestTestTestTestTestTestTestTestTestTestTest.</span>
  86. <span id="third">TestTestTestTestTestTestTestTestTestTestTestTestTestTest</span>
  87. <span id="fourth">TestTestTestTestTestTestTestTestTestTestTestTestTestTest.</span>
  88. <span id="fifth">TestTestTestTestTestTestTestTestTestTestTestTestTestTest</span>
  89. </p>
  90. </div>
  91. </div>
  92. <div id="secportfolio" class="container">
  93. <div id="aboutport" class="header"><h3 id="h3head_port">Moje</h3></div>
  94. <div id="portfolio" class="portfolio">
  95. <?php
  96. include "pages.php";
  97. ?>
  98. </div>
  99. </div>
  100. <div id="form" class="container">
  101. <div id="formhead" class="header"><h3>Kontakt</h3></div>
  102. <div id="formcont" class="formcont"></div>
  103. </div>
  104. </content>
  105. </body>
  106. </html>
  107.  


Próbowałem już wielu różnych efektów, w końcu wykomentowałem tę pętle, wyjaśnię od razu, że elementów będzie więcej, tyle ile dodam do bazy. Stąd pętla zliczająca ilość elementów, a jako id do skryptu w jquery był początkowo #(tab[i]) ale efekt był taki sam jak teraz.