Vantajs background

From bidewio/better-openclaw · View interactive version

Vantajs background is an AI agent skill from the GitHub repository bidewio/better-openclaw. Add animated WebGL background effects with Vanta.js — setup, parameters, resizing, performance considerations, and integration patterns in React/Next.js.

How to use this skill

Skill file

Vanta.js — Animated WebGL Backgrounds Skill

When to use

Key APIs

Quick recipe — Waves background

<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>

React cleanup pattern

useEffect(() => {
  const effect = VANTA.WAVES({ el: heroRef.current, ... });
  return () => effect.destroy();
}, []);

Common pitfalls

Tips for AI Agents

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.