gl-transitor
TypeScript icon, indicating that this package has built-in type declarations

0.0.2-alpha • Public • Published

gl-transitor

A simple way to complex shader image transitions.

Usage

import { GLTransitor } from 'gl-transitor';
import GLTransitorEffects from 'gl-transitor/shaders';

const transitor = GLTransitor.init('#canvas', GLTransitorEffects);

transitor.animate('#img-1', {
    url: 'https://some.url',
});

const from = transitor.createTexture(document.querySelector('#image-1'));

const to = transitor.createTexture(document.querySelector('#image-2'));

transitor.animateTexture(from, to);

Package Sidebar

Install

npm i gl-transitor

Weekly Downloads

0

Version

0.0.2-alpha

License

MIT

Unpacked Size

31.1 kB

Total Files

15

Last publish

Collaborators

  • protibimbok