JQuery plugin for compare effect of before and after two images, just it.
Include jQuery:
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js"></script>
Include plugin's CSS and JS:
<link rel="stylesheet" href="css/BeforeAfterPhoto.css">
<script src="js/BeforeAfterPhoto.jquery.min.js"></script>
Call the plugin:
$('#container').BeforeAfterEffect({width:500, height:300});
//for vertical align
$('#container').BeforeAfterEffect({width:500, height:300, orientation:'V'});
And that's it \o/
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D
Check Release list.
Built on top of jQuery Boilerplate.