Create 3D Anaglyph Images with jQuery and Canvas

File Size: 92.9 KB
Views Total: 1415
Last Update:
Publish Date:
Official Website: Go to website
License: MIT
   
Create 3D Anaglyph Images with jQuery and Canvas

A super tiny jQuery plugin that creates an Html5 canvas based 3D anaglyph effect on your images. Currently supports non-webkit browsers.

How to use it:

1. Import jQuery library and the jquery.anaglyphimage.js script into the document.

<script src="//code.jquery.com/jquery-2.1.3.min.js"></script>
<script src="src/jquery.anaglyphimage.js"></script>

2. Call the function on your images and setup the 3D anaglyph effect.

$('img').anaglyphImage({
  intensity: 20,
  quality: 0.9
});

This awesome jQuery plugin is developed by fabsrc. For more Advanced Usages, please check the demo page or visit the official website.