>_htmlhub
library/3d & webgl/vanta-rings

Vanta Rings

Live previewPerformance varies by device
vanta-rings.html

No account needed to copy or download. Check dependencies and thelicense status before publishing. Standalone download includes required libraries inline so it runs offline and in HTMLDeck.

<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Vanta.js Rings</title>
    <style>
      html,
      body {
        height: 100%;
        margin: 0;
        overflow: hidden;
        background: #07080d;
        color: #f5f7fb;
        font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      }
      #vanta {
        position: fixed;
        inset: 0;
      }
    </style>
    <script src="../vendor/three.r134.min.js"></script>
    <script src="../vendor/vanta/dist/vanta.rings.min.js"></script>
  </head>
  <body>
    <div id="vanta"></div>
    <script>
      VANTA.RINGS({
        el: "#vanta",
        mouseControls: true,
        touchControls: true,
        gyroControls: false,
        backgroundColor: 0x111111,
        color: 0x88ff00
      });
    </script>
</body>
</html>

About this animation

Vanta.js 3D ring forms with neon green geometry and mouse-responsive depth.

Under the hood

Vanta.js Neon-Green Rings on Default Tuning

This delegates rendering to VANTA.RINGS() from Vanta.js on Three.js WebGL, mounted on a fixed full-viewport #vanta div. It is the most minimally configured Vanta wrapper in this set, passing no size, speed or spacing overrides at all, only lime color: 0x88ff00 over backgroundColor: 0x111111, so the ring geometry runs on the library defaults. Interaction is on via mouseControls: true and touchControls: true, with gyroControls: false.

Source Code
Copied to clipboard