home.html 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. <html>
  2. <head>
  3. <title>科技平台</title>
  4. <meta charset="utf-8" />
  5. <meta name="renderer" content="webkit">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <meta content="width=device-width, initial-scale=1" name="viewport" />
  8. <meta content="" name="description" />
  9. <meta content="" name="author" />
  10. <link rel="stylesheet" href="css/style.css">
  11. </head>
  12. <body style="margin: 0 !important;">
  13. <div class="home">
  14. </div>
  15. <div id="particles-js" style="position: fixed; height: 100%; width: 100%;top:0px">
  16. <canvas class="particles-js-canvas-el"></canvas>
  17. </div>
  18. <script src="./js/particles.min.js" type="text/javascript" charset="utf-8"></script>
  19. <script>
  20. /* ---- particles.js config ---- */
  21. particlesJS("particles-js", {
  22. "particles": {
  23. "number": {
  24. "value": 80,
  25. "density": {
  26. "enable": true,
  27. "value_area": 1200
  28. }
  29. },
  30. "color": {
  31. "value": "#ffffff"
  32. },
  33. "shape": {
  34. "type": "circle",
  35. "stroke": {
  36. "width": 0,
  37. "color": "#000000"
  38. },
  39. "polygon": {
  40. "nb_sides": 5
  41. },
  42. "image": {
  43. "src": "img/github.svg",
  44. "width": 100,
  45. "height": 100
  46. }
  47. },
  48. "opacity": {
  49. "value": 0.5,
  50. "random": false,
  51. "anim": {
  52. "enable": false,
  53. "speed": 1,
  54. "opacity_min": 0.1,
  55. "sync": false
  56. }
  57. },
  58. "size": {
  59. "value": 3,
  60. "random": true,
  61. "anim": {
  62. "enable": false,
  63. "speed": 40,
  64. "size_min": 0.1,
  65. "sync": false
  66. }
  67. },
  68. "line_linked": {
  69. "enable": true,
  70. "distance": 150,
  71. "color": "#ffffff",
  72. "opacity": 0.4,
  73. "width": 1
  74. },
  75. "move": {
  76. "enable": true,
  77. "speed": 3,
  78. "direction": "none",
  79. "random": false,
  80. "straight": false,
  81. "out_mode": "out",
  82. "bounce": false,
  83. "attract": {
  84. "enable": false,
  85. "rotateX": 600,
  86. "rotateY": 1200
  87. }
  88. }
  89. },
  90. "interactivity": {
  91. "detect_on": "canvas",
  92. "events": {
  93. "onhover": {
  94. "enable": false,
  95. "mode": "grab"
  96. },
  97. "onclick": {
  98. "enable": false,
  99. "mode": "push"
  100. },
  101. "resize": true
  102. },
  103. "modes": {
  104. "grab": {
  105. "distance": 140,
  106. "line_linked": {
  107. "opacity": 1
  108. }
  109. },
  110. "bubble": {
  111. "distance": 400,
  112. "size": 40,
  113. "duration": 2,
  114. "opacity": 8,
  115. "speed": 3
  116. },
  117. "repulse": {
  118. "distance": 200,
  119. "duration": 0.4
  120. },
  121. "push": {
  122. "particles_nb": 4
  123. },
  124. "remove": {
  125. "particles_nb": 2
  126. }
  127. }
  128. },
  129. "retina_detect": true
  130. });
  131. </script>
  132. </body>
  133. </html>