Jump to content
Search Community

Draggable - get value

MaartenTe test
Moderator Tag

Warning: Please note

This thread was started before GSAP 3 was released. Some information, especially the syntax, may be out of date for GSAP 3. Please see the GSAP 3 migration guide and release notes for more information about how to update the code to GSAP 3's syntax. 

Recommended Posts

I found an older topic about a draggable button (

)

I've forked the codepen so I could start modifying it to my current needs.

The proposed solution was ideal to fit my needs. I only wonder how (and if) it is possible to get the current position of the button.

 

It will allow users to drag the house so they can position it according it to the direction their own house is situated. I then need the orientation to do some calculations.

 

Is this possible?
 

See the Pen jZaNgP by MaartenTe (@MaartenTe) on CodePen

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.
×
×
  • Create New...