0.2.1 • Published 1 year ago

morphimg v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

morphimg

A lightweight image morphing & animating tool for the web browser.

Try it out in the demo playground.

Basic usage

import Morphimg from 'morphimg';

const mph = new Morphimg({
    wrapper: document.getElementById('morphimg-wr'),
    width: 500,
    height: 500,
    src: '/url/to/my/test/image.png',
    // You can also generate the built-in control panel as follows
    // (this param is optional and usually is only used for testing purposes)
    cpanel: {
        wrapper: document.getElementById('morphimg-cpanel-wr'),
        // You can specify extra testImgs for testing (this param is optional)
        testImgs: [
            { src: '/url/to/my/test/image2.png', label: 'Image2' },
            { src: '/url/to/my/test/image3.png', label: 'Image3' },
        ]
    }
});
    
0.2.1

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago

1.0.0

1 year ago