threepipe
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

index.html 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="UTF-8">
  5. <title>GLTF Animation Page Scroll</title>
  6. <meta name="viewport" content="width=device-width, initial-scale=1">
  7. <!-- Import maps polyfill -->
  8. <!-- Remove this when import maps will be widely supported -->
  9. <script async src="https://unpkg.com/es-module-shims@1.6.3/dist/es-module-shims.js"></script>
  10. <script type="importmap">
  11. {
  12. "imports": {
  13. "threepipe": "./../../dist/index.mjs"
  14. }
  15. }
  16. </script>
  17. <style id="example-style">
  18. #canvas-container, #mcanvas {
  19. width: 100%;
  20. height: 100%;
  21. margin: 0;
  22. overflow: hidden;
  23. }
  24. body {
  25. overflow-y: scroll;
  26. overflow-x: hidden;
  27. width: 100%;
  28. height: 100%;
  29. margin: 0;
  30. padding: 0;
  31. background-color: white;
  32. }
  33. #canvas-container {
  34. position: fixed;
  35. top: 0;
  36. z-index: 5;
  37. }
  38. #content{
  39. z-index: 10;
  40. position: relative;
  41. height: auto;
  42. }
  43. section{
  44. z-index: 100;
  45. height: 100vh;
  46. line-height: 100vh;
  47. font-size: 4rem;
  48. font-weight: 600;
  49. }
  50. </style>
  51. <script type="module" src="../examples-utils/global-loading.mjs"></script>
  52. <script type="module" src="../examples-utils/simple-code-preview.mjs"></script>
  53. <script id="example-script" type="module" src="./script.js" data-scripts="./script.ts;./script.js"></script>
  54. </head>
  55. <body>
  56. <div id="canvas-container">
  57. <canvas id="mcanvas"></canvas>
  58. </div>
  59. <div id="content">
  60. <section>
  61. Section 1
  62. </section>
  63. <section>
  64. Section 2
  65. </section>
  66. <section>
  67. Section 3
  68. </section>
  69. <section>
  70. Section 4
  71. </section>
  72. <section>
  73. Section 5
  74. </section>
  75. <section>
  76. Section 6
  77. </section>
  78. <section>
  79. Section 7
  80. </section>
  81. <section>
  82. Section 8
  83. </section>
  84. <section>
  85. Section 9
  86. </section>
  87. <section>
  88. Section 10
  89. </section>
  90. <section>
  91. Section 11
  92. </section>
  93. <section>
  94. Section 12
  95. </section>
  96. <section>
  97. Section 13
  98. </section>
  99. <section>
  100. Section 14
  101. </section>
  102. <section>
  103. Section 15
  104. </section>
  105. <section>
  106. Section 16
  107. </section>
  108. <section>
  109. Section 17
  110. </section>
  111. <section>
  112. Section 18
  113. </section>
  114. <section>
  115. Section 19
  116. </section>
  117. <section>
  118. Section 20
  119. </section>
  120. <section>
  121. Section 21
  122. </section>
  123. <section>
  124. Section 22
  125. </section>
  126. </div>
  127. </body>