antwoolf Posted September 25, 2019 Share Posted September 25, 2019 I have tried adding the below 3.js script to embed block and code block. Page scrolling stops working. Have turned off ajax page loading and parallax scrolling. Also tried per page code injection which does not show up even though saved and refreshed. Anyone have any ideas?Here is the code: <meta charset="utf-8"> <title>My first three.js app</title> <script src="http://threejs.org/build/three.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/tween.js/16.7.0/Tween.js" ></script> <script src="http://threejs.org/examples/js/controls/TrackballControls.js"></script> <script src="http://threejs.org/examples/js/renderers/CSS3DRenderer.js"></script> <!-- <script src="script.js"></script> --> <style> body { margin: 0; } canvas { width: 100%; height: 100% } html, body { height: 100%; } body { background-color: #000000; margin: 0; font-family: Helvetica, sans-serif; ; overflow: hidden; } a { color: #ffffff; } #info { position: absolute; width: 100%; color: #ffffff; padding: 5px; font-family: Monospace; font-size: 13px; font-weight: bold; text-align: center; z-index: 1; } #menu { position: absolute; bottom: 20px; width: 100%; text-align: center; } .element { width: 120px; height: 160px; box-shadow: 0px 0px 12px rgba(0, 255, 255, 0.5); border: 1px solid rgba(127, 255, 255, 0.25); text-align: center; cursor: default; } .element:hover { box-shadow: 0px 0px 12px rgba(0, 255, 255, 0.75); border: 1px solid rgba(127, 255, 255, 0.75); } .element .number { position: absolute; top: 20px; right: 20px; font-size: 12px; color: rgba(127, 255, 255, 0.75); } .element .symbol { position: absolute; top: 40px; left: 0px; right: 0px; font-size: 60px; font-weight: bold; color: rgba(255, 255, 255, 0.75); text-shadow: 0 0 10px rgba(0, 255, 255, 0.95); } .element .details { position: absolute; bottom: 15px; left: 0px; right: 0px; font-size: 12px; color: rgba(127, 255, 255, 0.75); } button { color: rgba(127, 255, 255, 0.75); background: transparent; outline: 1px solid rgba(127, 255, 255, 0.75); border: 0px; padding: 5px 10px; cursor: pointer; } button:hover { background-color: rgba(0, 255, 255, 0.5); } button:active { color: #000000; background-color: rgba(0, 255, 255, 0.75); } </style> <div id="container"></div> <div id="menu"> <button id="table">TABLE</button> <button id="sphere">SPHERE</button> <button id="helix">HELIX</button> <button id="grid">GRID</button> </div> <script> </script> Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.