This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Darvinder Singh Kochhar
Posted Jan 08 - Read on Facebook

Hi guys! I am trying to create a simple drag slider in which the ball will only be limited to be dragged within the constraints of the container it is in. (something like the video).

I tried to achieve this by using ball.draggable.maxDragFrame = container.frame with container being the superLayer of the ball but still it just doesn't seem to work.

I tried the exact code on Codepen and it works but not in Framer.

Can you please help me out?

Here's the link to the framer file: http://share.framerjs.com/ymtpgh5v55fm/