Customizing using hammer.js is very easy. If you just go through the examples given by them, it would give you a fair idea of the functionality. However, this example will give you a sense of how the transitions will be like.
If you insist on using the animate/hammer.js, 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() {
// Animation complete.
});
});