🌐 WebGL • 🎮 True 3D Depth
🖱️ Move your mouse & scroll - Watch the 3D magic!
SuperParallax3D uses Three.js to create true 3D parallax effects with WebGL rendering. Experience depth like never before!
Include Three.js from CDN (keeping it simple with minimal dependencies):
<script src="https://cdn.jsdelivr.net/npm/three@0.160.0/build/three.min.js"></script>
Then include SuperParallax3D:
<script src="path/to/super-parallax-3d.js"></script>
// Initialize SuperParallax3D
const parallax3d = new SuperParallax3D('.parallax-3d-container', {
scrollMultiplier: 0.5,
mouseMultiplier: 2,
smoothing: 0.08,
fov: 75,
cameraZ: 5
});
HTML structure is the same as the 2D version:
<div data-parallax-layer data-parallax-depth="1.5">
<img src="layer.png">
</div>
scrollMultiplier: Controls scroll effect intensity (default: 0.5)
mouseMultiplier: Controls camera movement intensity (default: 2)
smoothing: Animation smoothness 0-1 (default: 0.08)
fov: Camera field of view in degrees (default: 75)
cameraZ: Camera distance from scene (default: 5)