Setting up with hammer.js is very simple. Just looking at the examples he gives will give you an idea of โโthe functionality. However, this example will give you an idea of โโwhat the transitions will look like.
If you insist on using the /hammer.js animation, this structure will help:
$('#elementID').hammer().on('swipe', function(e){ e.preventDefault(); $('#your-content-ID').animate({ opacity: 0.25, left: '+=50', height: 'toggle' }, 5000, function() {
source share