Jump to content
Search Community

Lynx

Members
  • Posts

    139
  • Joined

  • Last visited

Posts posted by Lynx

  1. The problem Blake brought up regarding how I would get the graphic to bend was put into consideration :) I thought of a solution, nothing new; getting the pieces in order before the code ! :)

  2. Can you add more control handles to your second code pen example ?

     

    Awesome work, Blake. My mind is melting.

     

    Lynx, you can animate any numeric value and apply it to anything you want. This is one of the core strengths of GSAP – it isn't tied to CSS values or any rendering layer.

     

    See the Pen OVpVBr by chrisgannon (@chrisgannon) on CodePen

    See the Pen RNdrJw by chrisgannon (@chrisgannon) on CodePen

     

    If you intend to merge the effect Blake created with your coil image (above), no, that doesn't seem feasible.

  3. Creating realistic movement of a coil being unrolled is no easy task. Connecting all the different curves together requires using some type of transition curvature like a clothoid/euler spiral. This is what engineers use to make the geometric design of highways, railroads, and roller coasters all nice and smooth. Carl wasn't kidding around when he said that you would need some pretty solid math skills to do this. There is a lot of calculus involved, and I'm not aware of any JavaScript library that can do this.

     

    A couple of weeks ago I found some font-drawing software on GitHub that does a nice job of creating curves. I was able to port the curve design code over to JavaScript and got it working with GSAP. I must say that the results are absolutely amazing. Unfortunately, when I tried putting it up on CodePen I ran into a lot of problems.

     

    I never noticed this before, but CodePen runs some stupid script that injects code into your loops that is supposed to prevent infinite loops from happening. Sounds nice and all, but it does the complete opposite for this project and keeps creating infinite loops, breaking everything. I know how to fix it. I just need to convert all my loops into functions, but I really don't feel like messing with it right now. I'll get back to it in a couple of days and put it up online so you can play around with it.

     

    In the meantime, here's a video of me playing around with some SVGs and Draggable. Look how easy it is to draw a path while maintaining a continuous curve. Try doing that in Illustrator and let me know how it goes.

     

     

    Can one animate the control points ? And can one replace the curve in the video, with an image ?

  4. Simply uncoil and coil up something, lets use a wire as seen in the image as an example; it could be anything !

     

    Does the SVG need to be coiled up or straight; I'm assuming straight ?

  5. Still trying to make stuff grow.  ;-)

     

    You should start out with something basic like a rectangle.

    See the Pen 45acd3617e6ec885fe7df8e1e705e0be by osublake (@osublake) on CodePen

     

    Then check out this post by Sara Soueidan to create more complex shapes.

    http://sarasoueidan.com/blog/css-svg-clipping/

     

    This is perfect.  Except I set stroke="#000000" for the id=rect so I could see the rectangle, but the rectangle is not showing with a black outline ?

     

    The only problem with your last example; post #3, is varying widths, which I know gsap can't do. 

     

    Can you control control the speed to which it's revealed by two methods, the speed someone swipes on a touch device and the speed to which someone scrolls on a desktop ?

  6. I do have some material on canvas, I never read :)

     

    From my perspective, canvas is coding what photoshop does, except for the web.  Unless I want a components effect, GSAP can do such stuff, otherwise, canvas is the best alternative. :)

  7. OSUBlake - If I recall, you mentioned it may be hard to implement this on a page ?

     

    Not Growing as in, scaling growing, growing as in literally growing, like how your finger grows, or a branch on a tree grows.  A branch on a tree starts off short, then as the tree ages it gets longer.

  8. These particle effects are good, when your going to something specific, as in a SVG graphic breaking up into particles, is this possible, all I see are examples of firework type effects, and visually as great as they may be to some, visually there sorta bland.

  9. However I am not sure how you are going to do a variable width stroke

     

     

    This would be the only thing, GSAP can't adjust the width ?

    Couldn't you tween the stroke width ?

    What about this;

    selector {stroke-width:20px}

    "           "{stroke-width:30px}

    "           "{stroke-width:40px}

     

    Then tween using the same selector using a SVG path?

  10. Carl you example shows a few words following a path, I want a growing effect along a path.  The only thing I didn't mention in post #7 was the word growing, other wise the rest of that post remains the same, using words, as a growing effect as mentioned in that post as an starting example. I want to say similar to illustrators blend paths, I don't want to make confusion.

  11. I did a few mistakes, position:absolute for one, thanks for the refresher :)

    Everything works, how can I make it a series of text, as a vine would work ? Remember this is just a placeholder, not going to make a vine of text :) Just a note, other coding forums sometimes takes things a little too literal :)

×
×
  • Create New...