pieterm Posted November 8, 2021 Share Posted November 8, 2021 Hi! I've got a row with elements which can be dragged inside dropzones. All is working well but I can't get the dragged objects to fit exactly within the dropzone. Can someone point me in the right direction? Thanks in advance, Pieter See the Pen jOLxBEv by PMidd (@PMidd) on CodePen Link to comment Share on other sites More sharing options...
OSUblake Posted November 8, 2021 Share Posted November 8, 2021 Hi peiterm, You're going to need to calculate the difference, kind of like what is shown here. 1 Link to comment Share on other sites More sharing options...
Solution GreenSock Posted November 8, 2021 Solution Share Posted November 8, 2021 For what it's worth, Club GreenSock members get access to Flip plugin which has a very convenient Flip.fit() method. Link to comment Share on other sites More sharing options...
pieterm Posted November 11, 2021 Author Share Posted November 11, 2021 Flip.fit() did the trick! Thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now