Jump to content
Search Community

Recommended Posts

Posted

Hi Guys, can  anyone please share how to rotate an element(card UI) while dragging? which is some what similar to tinder ui, when you drag element(Card), I want to rotate maximum +15deg(if dragged right side), -15deg(if dragged left side) and animate  second element just like tinder(which is positioned below current element) . I have used Draggable plugin for dragging (which works amazing , Thanks GSAP Team), but dont know how to rotate while dragging like tinder.

 

Let me know if my description is not clear, i will try to clarify or comeup with codepen.

 

Thanks in advance.

Posted

@ZachSaucier Thanks a lot .Exactly what i was looking for.  BTW been following your tutorials on youtube and gsap/learning center,  It was really super easy to understand and helped us a lot in getting into gsap, Thanks again! & Have a nice day.

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...