VFX-JS

VFX-JS API docs

This is the API docs for VFX-JS.
In this API docs, we'll show the class, functions and parameters provided by VFX-JS.


VFX-JS allows you to add WebGL-powered visual effects to HTML elements; <img>s, <video>s and even <div>s.
To use VFX-JS, first install it from npm:

npm i @vfx-js/core

Then use it in your script:

import { VFX } from "@vfx-js/core";

const vfx = new VFX();
vfx.add(element, { shader: "glitch" });

For more examples, visit the website:
https://amagi.dev/vfx-js/