Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
dagangyang

Draggable。I want An element uses both rotation and drag

Recommended Posts

I hope he supports both type: 'x, y' and type: 'rotation'

But if I set it this way, it's always the last

I went through Greenlock draggable's documentation and couldn't find it

My English is not good, but I still like to read our documents,

I hope you can help me with that. thank you

🙏

See the Pen wvdBbeG by wlisdog (@wlisdog) on CodePen

Link to comment
Share on other sites

  • dagangyang changed the title to Draggable。I want An element uses both rotation and drag

Hi dagangyang!

 

Not sure how you want that to work, but if you want to combine both, you should probably have a certain area to trigger the rotation.

 

See the Pen xxdbooO by GreenSock (@GreenSock) on CodePen

 

Using vectors.

 

See the Pen abWzgrd by GreenSock (@GreenSock) on CodePen

 

  • Like 5
Link to comment
Share on other sites

Thank you That's what I want😃

Link to comment
Share on other sites

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.

×