No description, website, or topics provided.
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
src
README.markdown

README.markdown

jQuery Before and After Plugin

A jQuery plugin that adds a before and after swiping effect for images.

Dependencies

jQuery
jQuery UI slider - a version of this is included in the src dir

Use

markup:
<div class="before-after" data-after="<img2 src>"><img src="<img1 src>" alt="before" /></div>

call the plugin:
$('.before-after').beforeafter();

Browser Support:

I expect it to work in all modern browsers. If you encounter any issues, please let me know.

License:

This plugin was originally authored by Caleb Brown (twitter.com/kayluhb), and is released under an MIT License (do what you want with it).