Jump to content
GreenSock

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

PointC last won the day on February 15

PointC had the most liked content!

PointC

Moderators
  • Content Count

    4,145
  • Joined

  • Last visited

  • Days Won

    349

Everything posted by PointC

  1. Is this what you needed? https://codepen.io/PointC/pen/8966e64da7444bf47a5c3f51f2b15026 Happy tweening.
  2. Yep - that's intentional. With any of my SVG work like that I try to create a little overlap rather than make it pixel perfect. Depending on what you're doing, it may not be possible. But, if you can, it'll save you some headaches down the road. Glad to see you've got everything sorted now. Happy tweening and thank you for your continued support with a Club membership.
  3. Understood. That's why I said reverse the point pairs and then reverse the array. My first thought was flipping each x,y pair with a loop and then reversing the array. I don't know when I would need to do this, but I'm curious how it could be written in "Jack Doyle Super Fancy Code." let points = [1, 2, 3, 4, 5, 6, 7, 8]; for (let i = 0; i < points.length - 1; i += 2) { let flipPoint = points[i]; points[i] = points[i + 1]; points[i + 1] = flipPoint; } console.log(points.reverse()); // [7, 8, 5, 6, 3, 4, 1, 2]
  4. I'm not entirely sure I follow. I would: Start with a rectangle Cut out the zagged shape for the reveal Duplicate the cut rectangle Push and pull points of the duplicate until it closes up Morph between the two shapes. Something like this. https://codepen.io/PointC/pen/MWbqOgb Does that help at all? Happy tweening.
  5. I would think you could use .getRawPath(), reverse the point pairs and then reverse the array. If you need it, you could then use .rawPathToString() to feed into a tween as the 'd' attribute. Though I'd say it's much easier to reverse DrawSVG or the MotionPath. Even easier to draw it in the desired direction in your vector software. Just my two cents.
  6. Hi @girro Welcome to the forum. It doesn't work on the second click because you've already played the timeline. You'll want to restart the timeline or use .play(0) like this: document.getElementById("List").addEventListener("click", () => tl.play(0)); document.getElementById("Kanban").addEventListener("click", () => t2.play(0)); Is this intended to be a bubble indicator when you're done? If so, this demo may help. https://codepen.io/PointC/pen/zJVmMd Happy tweening and welcome aboard.
  7. Most of that perceived shorter duration is because of your ease. Please try setting it to none to see the difference. ease: "none", Happy tweening.
  8. So the negative space would just close up? Yeah I think grabbing the original vector and pull the points until it makes a solid rectangle would work well. You said you're using Figma, but I do have an article about organic morphing if you ever use Adobe Illustrator. https://www.motiontricks.com/organic-morphing-getting-needed-points-from-adobe-illustrator/
  9. @billyZduke just a shot in the dark here, but have you tried setting the overwrite to true or auto? gsap.defaults({ overwrite: true }); Does that make any difference?
  10. Look no further than @Carl's excellent training. https://www.creativecodingclub.com/bundles/creative-coding-club
  11. So you just want it to expand and then contract a few seconds later? Please try this. gsap.to(".block", { duration: 1, width: 500, yoyo: true, repeat: 1, repeatDelay: 3 }); Is that what you meant? Happy tweening.
  12. Hi @BrianCross Welcome to the forum and thanks for being a club member. I'd write it like this: gsap.to(this.targets()[0], { https://greensock.com/docs/v3/GSAP/Tween/targets() Happy tweening.
  13. I'm guessing you mean you'd like to animate the bars as they come into view? If so, you should go through the ScrollTrigger docs and demos. https://greensock.com/st-demos/ Happy tweening.
  14. Happy to help. Just FYI - this works well animating the d attribute when you have the same number of points, but you should also check out the MorphSVG plugin as part of Club GreenSock for some added options. https://greensock.com/club/ This thread may also be of interest to you. Happy tweening.
  15. oh my mistake. I see what the 3rd path is for now. You are trying to curve and then go flat at the top. Like this? https://codepen.io/PointC/pen/jOVzvVN
  16. I'm not quite sure what the desired result is here as you have three paths. One square, one curved piece and another which looks like a line. I'm guessing you wanted it to do this? https://codepen.io/PointC/pen/RwoMYNM Does that help? Happy tweening.
  17. You're saying the cursor in the GreenSock demo doesn't show 'grabbing' in Chrome for you? That demo works correctly for me in all browsers. Your demo from the other thread also changes to 'grabbing' for me in all browsers. I'm on a Windows 10 machine. Maybe others see the same problem as you're describing.
  18. Hi @joshuawalker Welcome to the forum. Here are a couple examples where I used PixiJS. https://codepen.io/PointC/pen/RyaJmj https://codepen.io/PointC/pen/devBRB The 2000 post demo just uses PixiJS graphics for the sparks and confetti. The popcorn demo uses a .png sprite. These are a little older and I haven't yet had time to upgrade them to GSAP3 but they may give you some ideas. Happy tweening and welcome aboard.
  19. I'm not sure when 3.6.1 is dropping, but I'm sure @GreenSock can send you the updated DrawSVG file. He should be along shortly.
  20. Just FYI. Creating vectors for organic morphing in Adobe Illustrator can sometimes produce less than desirable results. I have an article about how to work around AI's 'helpfulness'. https://www.motiontricks.com/organic-morphing-getting-needed-points-from-adobe-illustrator/ Happy tweening.
  21. Drop it into a SVG and use a mask. Lots of fun options. https://codepen.io/PointC/pen/yJjNOX
  22. You may be beyond this already, but I have a basic MotionPath starter tutorial here. https://www.motiontricks.com/piggy-bank-motion-path-basics/ Happy tweening.
  23. PS I have an article on masks and clip-paths which may be helpful for you. https://www.motiontricks.com/svg-masks-and-clippaths/ Happy tweening.
×