Jump to content
GreenSock

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

PointC last won the day on June 11

PointC had the most liked content!

PointC

Moderators
  • Content Count

    4,369
  • Joined

  • Last visited

  • Days Won

    360

PointC last won the day on June 11

PointC had the most liked content!

Community Reputation

12,216 Superhero

About PointC

  • Rank
    Moderator

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

42,802 profile views
  1. Hi @trousersthecat Welcome to the forum. Since you've specified the pathLength attribute as "1", you need to write your GSAP tween like this to go from 0 → 1. tl.fromTo(pj1Paths, { drawSVG: 0 }, { duration: 6, drawSVG: 1 }); Or you can remove that attribute from the elements and your original tween will work correctly. Just FYI, the duration should be in the vars for GSAP 3 syntax. I hope that helps. Happy tweening.
  2. The problem here is you can interrupt the tween at any time and then start a new tween to 360 with a duration of 3 seconds. So if the current animation is at 330 degrees and you interrupt it with a click, it will then animate the final 30 degrees in 3 seconds making it seem like slow motion. In this case I think using a .fromTo() tween would be the easiest fix. https://codepen.io/PointC/pen/6ef0faf495c9000cf1f553f5f7bbb773 You can also create your tweens/timelines outside of your event handler and simply play/reverse/pause etc. them with your clicks. Hopeful
  3. You just have a typo. The defs is closed as </def> on line 8 in the html instead of </defs>. Since that wasn't closed correctly, everything was in the defs and therefore not rendered. Make that switch and you'll be good to go. Happy tweening.
  4. Hi @ELMNTL Welcome to the forum. The easiest way to animate a dashed line is by using a mask. I have a tutorial on my training site about that technique. I think you'll find it helpful. https://www.motiontricks.com/svg-dashed-line-animation/ Happy tweening and welcome aboard.
  5. Yep - sorry about that. I was messing with percentages while making it and forgot to switch it back. I updated the original now. Happy tweening.
  6. The 'cuts' in your path are because the stroke is overflowing the SVG. Here's a little example. The SVGs are 100x100 with a circle radius of 50. I've outlined the SVGs with a red dotted stroke so you can see what's happening. You can see the circle with a fill pushes right up to the edge in the first SVG. Now adding a stroke will cause problems because strokes are center aligned. Meaning half of the stroke will be outside the viewBox. You can see the 20 unit stroke is partially cut off in the second SVG. The third SVG is the same as the 2nd but I've set the SVG overflow to visible.
  7. Yeah - sorry about that. I didn't see the part about delay. duration, delay and stagger do not refresh. In this case you'd probably want to create the animation in a function and then onComplete call the function again. Does that make sense? Happy tweening.
  8. You'd need to make one small change: //switch this skewX: gsap.utils.random(-20, 20), //to one of these skewX: gsap.utils.random(-20, 20, true) skewX: "random(-20, 20)" Happy tweening.
  9. @Alex Lopez sure you can do that. I'd recommend going through the ScrollTrigger docs and demos to see how it's done. https://greensock.com/docs/v3/Plugins/ScrollTrigger https://greensock.com/st-demos/ Happy scrolling.
  10. I forgot that I had a second version of that demo too. It's pretty much the same but uses one tween with a stagger instead of multiple timelines on a parent. That could also be an option for you. Happy tweening. https://codepen.io/PointC/pen/ExVzqdm
  11. Just my two cents, but with these circular orbits, I find it easier to use svgOrigin and just animate the rotation. (Not that there's anything wrong with using a motion path.) Here's a quick fork for you. You'd need to adjust the rotations to meet your needs, but it shows how you could do it without a motion path. https://codepen.io/PointC/pen/04c10b7a70911c7a16ccba3cdaf9587d Happy tweening.
  12. I'm not sure I follow. You just want to make one cloud in your vector software and then clone it a bunch of times? That's certainly doable. You'd loop through, create the clones and append them to a group. After that you'd clone the main group and animate them like the demo I posted. Is that what you meant?
  13. I think you'd probably want to put them on a master timeline and then you can control it with your pause/play buttons or whatever controls you like. Here's a similar demo from another thread which should get you started. https://codepen.io/PointC/pen/pojmBKJ Happy tweening.
×