How to swipe to animate (move/hide) an element

Does anyone know how to add this UI effect that allows you to swipe a group out of view? Just like this example in Trello