Loading...
Loading...
Use when adding animated WebGL background effects with Vanta.js (setup, parameters, resizing, performance, integration in React/Next.js).
npx skill4agent add mengto/skills vantajsthree.min.jsconst effect = VANTA.WAVES({ el: "#hero", ...options })effect.setOptions({ color: 0xff88cc })effect.resize()effect.destroy()window.THREETHREE<div id="hero" style="height: 70vh;"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r134/three.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vanta/dist/vanta.waves.min.js"></script>
<script>
const effect = VANTA.WAVES({ el: "#hero", color: 0x0b1220, shininess: 40, waveHeight: 16, zoom: 0.9 });
</script>useEffectdestroy()