Jump to content
GreenSock

PointC last won the day on October 30 2022

PointC had the most liked content!

PointC

Moderators
  • Posts

    4,988
  • Joined

  • Last visited

  • Days Won

    401

PointC last won the day on October 30 2022

PointC had the most liked content!

About PointC

Profile Information

  • Gender
    Male
  • Location
    Seattle area
  • Interests
    web design, motion graphics, 3D animation, video production, all things sci-fi, Mt. Rainier hiking and my dachshunds

Recent Profile Visitors

57,601 profile views
  1. I'd probably add a small delay on the "reset" tween and set overwrite to true. Something like this: https://codepen.io/PointC/pen/ZEMjdLj/364a470e414172b8fbd6a7420de056f6 More info about overwrite. Happy tweening.
  2. I think that will only work if you assign the arrow function to a variable as removeEventListener requires a reference to the function. https://codepen.io/PointC/pen/RwYJXJY/58144ad0414b9266b9556f00d0b0f91c
  3. You'll need to write with an object like this: tl.to(waveAC, { morphSVG: { shape: waveA, type: "rotational", origin: "20% 0%" } }); Happy morphing.
  4. Here's one from another forum question a while back. (Can't seem to find the original thread). This one uses a cover to mask the text elements and reveal the letters. That way you don't need a duplicate target element. Just an idea. YMMV. https://codepen.io/PointC/pen/MWQJWqJ
  5. Clone and append certainly works. Depending on your needs, insertAdjacentElement() could also work. theSVG.insertAdjacentElement("afterbegin", theAppendedItem); More info: https://developer.mozilla.org/en-US/docs/Web/API/Element/insertAdjacentElement Happy tweening.
  6. Another little trick is to create everything at 0,0 and then start moving things. That way you know exactly where everything is located. Not always feasible, but works in some cases. YMMV
  7. Exact same thing with SVG fill and the attrPlugin. Happy tweening. https://codepen.io/PointC/pen/zYJPOvr/19b1b9a98a4cd015fcdfebb25cb2d513
  8. PointC

    async morphSVG

    Sounds like you're looking for the position parameter.
  9. Congrats @Lamonier - that's great news. 🥳 I believe the current exchange rate for GSAP assisted job hunting is a Club purchase and 100 forum answers. Congrats again. We hope to see you around the forum all the time now.
  10. Please try this: onReverseComplete: function() { gsap.set(swatches[i], {clearProps: 'transform'}); },
  11. I'm not quite sure what you need, but here are a couple other threads with gradient animations that may spark some ideas. Happy tweening.
  12. PointC

    GSAP 3 Cheat Sheet

    @Cassie may make a fancier one, but here's a printer friendly version to get you started. gsap-3-cheat-sheet-printer-friendly.pdf Happy tweening.
  13. This tutorial may help too. https://www.motiontricks.com/svg-dashed-line-animation/
  14. Yep - you need a stroked path for that to work. You can see in my original demo that the path with ID of maskPath has no fill and just a white stroke. Fix that and you should be good to go. Happy tweening.
  15. No worries. @Cassie is the genius. I just pretend to know what I'm doing.
×