Jump to content
Search Community

jakelaz

Members
  • Posts

    4
  • Joined

  • Last visited

jakelaz's Achievements

  1. Hey @OSUblake! That fixed it. Thank you so much. Do I simple register the file with the below? gsap.registerPlugin(InertiaPlugin);
  2. Hey! Made a minimal demo on CodePen to illustrate the problem @OSUblake: https://codepen.io/jakelaz/pen/QWqQRqB. Thanks for the help here.
  3. @OSUblake, thanks for the response. If you are saying I can't have multiple animations on the same element, I commented out the block you shared above and the issue with inertia persists. Any other ideas?
  4. Hi, we're having issues getting the inertia effect to work within a draggable component on my Webflow site (https://mor-life.webflow.io/). The #canvas element contains a bunch of .box elements (see the screenshot below). Despite the fact that dragging works, the really delightful inertia/throw animation does not. We more or less copy/pasted the draggable JS snippet from the Draggable Toss demo on Codepen, where inertia works beautifully. The only change we made was the removal of the snap-to-grid elements. We purchased the bonus plugins yesterday and would really like to get this working. Code can be inspected quite easily on Webflow, but copied below as well. var $container = $("#canvas"); Draggable.create(".box", { bounds: $container, edgeResistance: 0.65, type: "x,y", inertia: true, autoScroll: true }); Thanks in advance for the support!
×
×
  • Create New...