ppdemo
Content Type
Profiles
Forums
Store
Blog
Product
Showcase
FAQ
Downloads
Posts posted by ppdemo
-
-
Hi @GreenSock as your instruction. I created the corner points and its working well. also i'm getting the hit position when the redbox hit bluebox. but i don't know how to stop the draggable which is act like bounds. can you please help me to fix...
See the Pen wvYeRwV by demo-ppad (@demo-ppad) on CodePen
-
thankyou i'll check those...
-
how to get the exact position (x,y) of Red and Blue box corner. So I can find the point hit between two points.
I tried getBoundingClientRect(). not working because of angle . can you please tell how to get the position (x,y) for each corners. -
Hi everyone!
Sorry, if the answer is already there, but I couldn't find it.
In the codepen example. I have two rectangle box.
Red color box have angle 45deg and draggable with bounds. Blue color box has 0 deg.if i tried to drag the Red box i.e, Blue box corner "a" hit in between Red box "e" & "h" corner points. it's want to act as boundary. same for other corners.
can you please help me to solve this...
Thank you!
See the Pen qBJjypj by demo-ppad (@demo-ppad) on CodePen
Draggable hit wall
in GSAP
Posted
Hi everyone, I'm newbie. Just want to know. how to restrict the direction of draggable while hit an another object.
in the codepen example, I have a Green box is draggable. when we hit the Black box. i needs to act like wall.
Thanks
See the Pen oNaaowL?editors=0010 by demo-ppad (@demo-ppad) on CodePen