#codevember - [click]
How do I make an #codevember - [click]?
What is a #codevember - [click]? How do you make a #codevember - [click]? This script and codes were developed by XORXOR on 27 January 2023, Friday.
#codevember - [click] - Script Codes HTML Codes
<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>#codevember - [click]</title>
</head>
<body> <html> <head> <meta name="viewport" content="width=device-width, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> <title>[Click]</title> <style> body { margin: 0px; overflow: hidden; background-color: #779ECB; font-family: 'Arial'; } .char { font-size: 100px; transform-origin: center; color: white; } #help{ position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); font-size: 40px; color: black; } </style> </head> <body> <div id="help">[click]</div> </body>
</html> <script src='https://cdnjs.cloudflare.com/ajax/libs/three.js/r79/three.min.js'></script>
<script src='https://dl.dropboxusercontent.com/u/7343209/CSS3DRenderer.js'></script> <script src="js/index.js"></script>
</body>
</html>
#codevember - [click] - Script Codes JS Codes
//created by XORXOR, 2016
var contianer, renderer, camera, scene;
var char;
var chars = [];
var objects = [];
function init() { container = document.createElement('div'); document.body.appendChild(container); scene = new THREE.Scene(); camera = new THREE.PerspectiveCamera( 70, window.innerWidth/window.innerHeight, 1, 10000 ); camera.position.set( 0, 0, 500 ); renderer = new THREE.CSS3DRenderer(); renderer.setSize(window.innerWidth, window.innerHeight); container.appendChild( renderer.domElement ); scene.add(camera); window.addEventListener( 'mousedown', clickedOnScreen ); window.addEventListener( 'resize', onWindowResize, false );
}
function get3dPoint(event){ var vector = new THREE.Vector3( (event.clientX / window.innerWidth) * 2 - 1, - (event.clientY / window.innerHeight) * 2 + 1, 0.5); vector.unproject(camera); var dir = vector.sub(camera.position).normalize(); var distance = - camera.position.z / dir.z; var pos = camera.position.clone().add( dir.multiplyScalar(distance) ); return pos;
}
function animate() { for (var i = chars.length - 1; i >= 0; i--) { chars[i].style.opacity -= .004; op = chars[i].style.opacity; objects[i].position.z -= 1; if (op < 0) { scene.remove(objects[i]); chars.splice(i,1); objects.splice(i,1); } } requestAnimationFrame(animate); renderer.render(scene, camera);
}
function clickedOnScreen(e) { e.preventDefault(); var help = document.getElementById('help'); help.style.display = "none"; var point = get3dPoint(e); char = document.createElement( 'div' ); char.className = 'char'; char.style.opacity = 1; letter = String.fromCharCode(97 + Math.floor(Math.random() * 26)) char.textContent = letter.toUpperCase(); object = new THREE.CSS3DObject(char); chars.push(char); objects.push(object); scene.add(object); object.position.set(point.x,point.y,0)
}
function onWindowResize() { camera.aspect = window.innerWidth / window.innerHeight; camera.updateProjectionMatrix(); renderer.setSize( window.innerWidth, window.innerHeight );
}
init();
animate();
Developer | XORXOR |
Username | xorxor_hu |
Uploaded | January 27, 2023 |
Rating | 3 |
Size | 2,639 Kb |
Views | 8,096 |
Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!
Name | Size |
The Walking Raymarcher | 7,934 Kb |
Grid of Birds | 3,512 Kb |
Complex Form with Black and White Spirals | 3,340 Kb |
Birds | 5,934 Kb |
Kaleidoscope | 3,536 Kb |
2050 | 3,612 Kb |
Cubic Tunnel | 4,791 Kb |
Morphing Tubes | 3,406 Kb |
Complex Form with Black and White Bands | 3,209 Kb |
Pipes | 3,300 Kb |
Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!
Name | Username | Size |
Planet Awesome | Bartuc | 3,554 Kb |
Falling Down the Rabbit Hole | Rachelnabors | 4,578 Kb |
Two column of responsive height | Fixie | 2,908 Kb |
Polygon Dodecahedron in CSS | Vennsoh | 7,606 Kb |
Console fun | Dviate | 1,500 Kb |
Box-sizing | Elad2412 | 1,572 Kb |
Awesome textarea | Ayoungh | 1,977 Kb |
Right Click Menu | Anodpixels | 2,252 Kb |
Pruebas de d3.js | Juanmanuelcarnerero | 2,485 Kb |
Whyutils | LeYvan | 3,752 Kb |
Surf anonymously, prevent hackers from acquiring your IP address, send anonymous email, and encrypt your Internet connection. High speed, ultra secure, and easy to use. Instant setup. Hide Your IP Now!