Best of threejsMarch 2025

  1. 1
    Article
    Avatar of codropsCodrops·1y

    Animating Letters with Shaders: Interactive Text Effect with Three.js & GLSL

    Learn how to create an interactive text effect using Three.js and custom shaders. This tutorial covers the basics of creating a ShaderMaterial, using raycasting for mouse interactions, and applying a dynamic displacement effect. Enhance the visual experience with shadow effects and experiment with easing functions for smooth transitions.

  2. 2
    Article
    Avatar of codropsCodrops·1y

    Building an Interactive Image Grid with Three.js

    This tutorial guides you through creating a dynamic interactive image grid using Three.js, from grid setup and card initialization to advanced animations and shader effects. It explains the implementation using a pre-prepared repository, detail card position scaling, hover interactions based on mouse positions, and using custom shaders for visual effects. Tips for handling performance and customization options are included to optimize and enhance the grid's appearance and functionality.

  3. 3
    Article
    Avatar of codropsCodrops·1y

    WebGPU Scanning Effect with Depth Maps

    An exploration of a scanning effect using depth maps, custom shaders, and WebGPU rendering with Three.js and react-three-fiber. The demo showcases three variations of the effect by combining depth information with post-processing to create dynamic visual depth. Techniques include image distortion through UV coordinate displacement, procedural dot grid masking, and continuous scan animation using GSAP.