Collection of three.js (Javascript 3D library) code examples
Welcome to our collection of JavaScript examples! In this meticulously curated compilation, we have assembled a diverse range of JavaScript code snippets that showcase the flexibility and power of this dynamic programming language.

Interactive 3D Background
Kevin Levron | March 17, 2019
HTML / CSS / JS (Babel)
About a code
This simple interactive background is made with ThreeJS and a PlaneBufferGeometry animated with Simplex noise.
Chrome, Edge, Firefox, Opera, Safari
yes
three.js, simplex-noise.js, chroma.js

Page Reveal Effect
Kevin Levron | March 16, 2019
HTML / CSS / JS (Babel)
About a code
Simple 3D reveal effect. This simple effect is made with ThreeJS and TweenMax.
Chrome, Edge, Firefox, Opera, Safari
yes
bootstrap.css, three.js, tweenmax.js

Shooting Star
Ko.Yelie | February 16, 2019
HTML (Pug) / CSS (SCSS) / JS
About a code
Your mouse (or finger) will be a shooting star. You can change size, speed, etc. by changing parameters.
Chrome, Edge, Firefox, Opera, Safari
yes
three.js, dat.gui.js

Storm
Liam Egan | June 5, 2018
HTML / CSS (SCSS) / JavaScript (Babel.js)
About a code
Most of the stuff in here is just bootstrapping. Essentially it's just setting ThreeJS up so that it renders a flat surface upon which to draw the shader. The only thing to see here really is the uniforms sent to the shader. Apart from that all of the magic happens in the HTML view under the fragment shader.
Chrome, Edge, Firefox, Opera, Safari
ccapture.js

3D Pixels
Shaw | December 18, 2016
HTML / CSS (Less) / JavaScript
About a code
Drag & drop an image or upload image to generate 3d pixels.
Chrome, Edge, Firefox, Opera, Safari
dat.gui.js, OrbitControls.js, CustomBounce.js, CustomEase.js, TweenMax.js/p>

Three.js Image Transition
Szenia Zadvornykh | May 4, 2016
HTML / CSS / JavaScript
About a code
Shader powered image transition with three.js. Click and drag to control the animation.
Chrome, Edge, Firefox, Opera, Safari
bas.js, OrbitControls-2.js, TweenMax.js
Discover Our Extensive Snippet Library
This heading suggests that your website provides a wide variety of snippets across different technologies, encouraging users to explore and use these resources for their development projects.
HTML Snippets.
Explore a collection of HTML snippets designed to streamline your web development process. From basic structures to complex elements.
CSS Snippets.
Discover powerful CSS snippets that help you style your web pages with ease. Whether you need layout solutions, animations
JavaScript Snippets.
Enhance your website's interactivity with our JavaScript snippets. From DOM manipulation to advanced algorithms
Bootstrap Snippets.
Leverage the power of Bootstrap with our collection of snippets. Quickly integrate responsive design components
Tailwind Snippets.
Speed up your development process with Tailwind CSS snippets. These utility-first CSS snippets enable you to
jQuery Snippets.
Simplify your JavaScript development with jQuery snippets. Easily perform common tasks like event handling, animations
Let's craft a visual identity that ignites passion and loyalty. ✨