vanillagram

VanillaJS script to apply filters for images similar to Instagram

Usage no npm install needed!

<script type="module">
  import vanillagram from 'https://cdn.skypack.dev/vanillagram';
</script>

README

VanillaGram

VanillaJS script to apply filters for images similar to Instagram

Demo

View demo here

Install

You can get it on npm.

npm install vanillagram --save

Download

If you're not into package management, just download a ZIP file.

How to use?

First, include the script located on the dist folder.

<script src="dist/vanillagram.min.js"></script>

Now, you need to instantiate it by passing a DOM selector and options.

VanillaGram('.filter1', {
    filter: 'fade',
    lightleak: 'lightleak1',
    shadow: 'drama'
});

Browser Support

IE Chrome Firefox Opera Safari
IE 9+ ✔ Latest ✔ Latest ✔ Latest ✔ Latest ✔

Thanks

Many thanks to Vivien Ilett, who originally created the plugin for jQuery.

Contributing

Check CONTRIBUTING.md for more information.

History

Check Releases for detailed changelog.

License

MIT