3DJakob / react-tinder-card

A npm react module for making react elements swipeable like in the dating app tinder.
https://www.npmjs.com/package/react-tinder-card
MIT License
353 stars 110 forks source link

Feature request: Can I raise a PR to add the rotation type swipe feature as this is a common type of swipe behaviour #148

Open vineethpawar opened 1 year ago

vineethpawar commented 1 year ago

Hi @3DJakob ,

Demo: https://user-images.githubusercontent.com/55575881/230185558-2cebf0be-2786-4669-bdb2-75592f81e19b.mp4

I was thinking of adding a prop swipeBehavior : freemode or tilt , with freemode being the default value. (Above Demo is for tilt type)

we could further add static as an option as well, in which it would move (left / right) wihtout any rotation.