Monday, 2 July 2012

JQuery Before & After Plugin

While working on an e-commerce site I needed a very interactive and interesting  plugin where i could show before and after effects in a single image rather than those two traditional before and after image. And here's what I used. Have a look..

http://www.catchmyfame.com/jquery/demo/7/

http://www.catchmyfame.com/jquery/demo/8/

And it's very simple to use. Remember it requires jQuery UI with JQuery.

<script type="text/javascript">
$(function(){
 $('#container').beforeAfter();
});
</script>


And wrap your images in a div ID container. That's it.

Have it downloaded from here..
http://www.catchmyfame.com/jquery/beforeafter.zip








No comments:

Post a Comment