Jump to content
Search Community

istambolov

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by istambolov

  1. Hello! 

     

    Is there a callback function that tells u when object snapped successfully?

     

    Re: 

    Nevermind i found a solution, figured that i can track changes to current position of the draggable element.

  2. Hello again and thank you for the fast response!

     

    Actually that example helped me allot so now i have different problem and its when the width of the element gets some kind of ugly number... 

    U can see that the dragger is not reaching the end of the container.

     

    See the Pen JvmjjN by anon (@anon) on CodePen

  3. Hello there GreenSock masters!

     

    I am trying to make a rater using angular components and a rater that the user caches with the mouse and starts to drag till he is reached for 1-10.

     

    My current code i am using is very simple,  i have generate element that contains smaller elements from 1-10 and one rater square witch position is absolute 

    but when i do the liveSnaps i stop being able to eaven move the element..... so please help me i can sent the project it contains only 1 element (rater ) :D so its not something big...

     
    Draggable.create(".rater", {
    bounds: document.getElementsByClassName("rater-container")[0],
    type:"y",
    liveSnap: {
    y:[200,400,600]
    }
    });
     
×
×
  • Create New...