Jump to content

Search In
  • More options...
Find results that contain...
Find results in...

garyw last won the day on November 22 2015

garyw had the most liked content!


  • Content Count

  • Joined

  • Last visited

  • Days Won


garyw last won the day on November 22 2015

garyw had the most liked content!

Community Reputation

16 Newbie

About garyw

  • Rank
    Advanced Member

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I removed all the v's and h's and I am still getting sharp bends: https://codepen.io/og-elmonty/pen/dyvOyKX
  2. Thank you both for your help. I have made the number of anchor points the same in the start and ending paths. It really helps, except with this one: https://codepen.io/og-elmonty/pen/dyvOyKX
  3. I am trying to animate a cable with a plug using MorphSVG. Morphing both the cable and plug as one path gives distorted results, so I separated them. However, they do not animate together correctly. How can I sync these animations so that the plug stays on the end of the cable? I have two more of these types of animations that I need to build. Please see my codepen.
  4. garyw

    How to group tweens?

    I'll try that, thanks.
  5. garyw

    How to group tweens?

    getTweensOf() doesn't work if you have tweens on multiple elements within a page and you want to get all of the tweens for the parent page. I would have to keep a list of every element that is tweening.
  6. garyw

    How to group tweens?

    Keeping track of the tweens within each page would also require me to track their completions and garbage collect them. I don't see any way to have multiple onComplete callbacks (one for any specific onComplete requirement of the tween and another for the page to track it for garbage collection). It would be much simpler to attach attach a tag to each tween and to get a list of all active tweens with a particular tag.
  7. garyw

    How to group tweens?

    I thought of exportRoot(), but it would include tweens that were created prior to any page, correct? And each subsequent call of exportRoot() would also include the prior ones, right?
  8. I have an SPA app where there can be tweens within each page as well as tweens on the parent shell. Is there any way to tag or group tweens so that I can kill a set of them (for example, all the ones created by a page when the page is unloaded) without killing all of them?
  9. I updated to the latest version and that solved it. Thanks!
  10. Aha, yes! Thank you. I would never have seen that.
  11. I am creating a Draggable with force3D:false. When I drag the object, it still has a translateZ value. When should it go away? Is there a way I can force it to go away on the onDragEnd event handler?
  12. Is anyone else having trouble forking the GSAP codepen template? There is no Fork button any more.
  13. I'm not trying to convince you one way or another, but I would just like to add this: If you put a general-purpose utility method in a toolbox, you don't know what people are going to use it for. It could end up being used for a number of non-animation purposes, and nobody will question whether they are getting an even distribution of randomness until somebody else notices it. <soapbox>If code size is the primary concern, my personal opinion is that the shuffle method should be removed (unless it is required by something else) rather than return mediocre results.
  14. This is what I use: function shuffle(array) { var result = Array.prototype.slice.call(array); // this method supports nodelists, too. for (var i = result.length - 1; i > 0; --i) { var j = Math.floor(Math.random() * (i + 1)); var temp = result; result = result[j]; result[j] = temp; } return result; }