Jump to content
Search Community

cooganb

Members
  • Posts

    22
  • Joined

  • Last visited

Posts posted by cooganb

  1. @OSUblake Apologies for the busy code, so the line in question is line 35 in the JS, in the `hide()` function: 

     

      .from(fin, {duration: 1, transformOrigin: "100% 90%", x: '+=300px', y: '-=5px', rotation: -130},'start')

    I was hoping that by giving it a label it would start with the line above, but when the animation starts, the fin is at its original position then switches over to the .from position.

     

    I just tried running set, but it still had the fin in the original position before going to the set position.

     

    If you think it's a matter of having a cleaner timeline, I'm happy to try that.

  2. hi there!

     

    I know this is a newbie question, but I'm totally stuck. I'm working on a basic animation and I can't get the object I'm animating to start at the .from location, rather it jumps there and then starts the animation. I tried using labels to make them start at the same time, but it's still jumping. Any ideas?

     

    Thank you so much in advance! 

    See the Pen xxqgdpY by cooganb (@cooganb) on CodePen

  3. Hi there!

     

    I've been wanting to dig into MotionPathPlugin for a while but just getting a chance to now. I have a question on positioning:

     

    As you can hopefully see in the example, I have a series of circles positioned along a path. I'd love to animate each circle start at the beginning of the path to go to their original position on the path while following the path. Is this possible? 

     

    Thanks for the help!

    See the Pen dyOMgwV by cooganb (@cooganb) on CodePen

  4. Hi there!

     

    I've been trying to follow the "Writing Smarter Animation Code" article. This includes compacting animations into functions, which can then be imported into a master timeline.

     

    I'm having some trouble with using DOM element manipulation in the functions. The function in the above example fails when I try to run it, saying `vars` using .GetDocumentById has not been assigned. However, when the logic is moved from function to the body of the JS doc, the animation works (which you can see commented out in the Codepen).

     

    Any advice from folks? Thanks in advance!

    See the Pen WNNMdrb by cooganb (@cooganb) on CodePen

  5. I've been using Codepen to adapt my SVGs into animations for a website I'm using. I've built the SVGs in Illustrator, brought them into HTML pane on Codepen, used CSS pane to style and JS to animate. I have about ten I'd like to move, some with similar tags -- what's the best way to go about moving them? including a simple example here of something I'm moving.

     

    Thanks so much in advance!

    See the Pen wVYaJw by cooganb (@cooganb) on CodePen

  6. Hi there! I'm trying to create an "orbit" effect with these two SVG objects. however, I'm reading that z-index doesn't really work within an animation, as SVGs are painted. Is there a way to have the effect of switching the z-index within an SVG?

     

    I was also wondering if there was a way to make the effect smooth, so there isn't a jerk when the objects switch directions. Is that possible to change with ease?

     

    Thanks in advance!

    See the Pen EqeMjO by cooganb (@cooganb) on CodePen

  7. Hi there! I'm really excited about using Greensock, but I'm pretty new to both GSAP and SVG animation.

     

    I'm trying to build an animation where one shapes disappears behind an object and the other appears out from the same object. The effect would be one object "transforming" into the other behind an object (the Codepen makes it more clear). I'm trying to use clipPaths to do it, but I can't tell if I'm animating it correctly. It might be an issue with my CSS, I can't tell!

     

    The first CodePen attached is what I have so far with the clipPaths. The second linked below is with the clipPaths removed:

     

    See the Pen vqLLQg by cooganb (@cooganb) on CodePen

     

    Any help would be much appreciated!

    See the Pen WqrbNO by cooganb (@cooganb) on CodePen

×
×
  • Create New...