Jump to content
Search Community

natekt

Members
  • Posts

    5
  • Joined

  • Last visited

natekt's Achievements

1

Reputation

  1. Sweet! Thanks so much for bearing with me and ultimately finding a solution. You guys rock!
  2. It doesn't go out of bounds during the animation of the click event: https://gfycat.com/glitteringglisteningblackrussianterrier (First demo is mine, second demo is Jack's)
  3. Jack's demo is different because his logo never goes out of bounds. I want the logo to animate out of bounds first, and then animate back into the boundaries after the initial tween. Try running the two demos at 0.25x scale to see the difference.
  4. Thanks for taking the time to respond! This is not what I am looking for; let me try to explain the steps better: 1) Logo is clicked 2) Logo grows and shifts smoothly, even if it goes out of bounds 3) If out of bounds, then logo slides back within the boundaries smoothly (ThrowProps style), not suddenly I like your idea to use the other available event handlers though. I'll explore them to see if they can lead me to a solution.
  5. Hi, when using Draggable with ThrowProps, there is a nice animation to slide the target back within the boundaries. However, when manually applying the boundaries by calling update(true) or applyBounds(), the ThrowProps animation doesn't get applied. (See line 16 in the codepen JS file) Click on the logo-man to see this in the codepen. Is there another way to calculate and apply the bounds using the ThrowProps animation?
×
×
  • Create New...