Jump to content
Search Community

usernolan

Members
  • Posts

    5
  • Joined

  • Last visited

Posts posted by usernolan

  1. Really appreciate the feedback @GreenSock!

     

    I’ll try more deliberate point dragging, which is a great idea, and may also take a shot at the more advanced approach too. It’s a good reason to learn more about SVG internals. In any case it’s great to know that something like that may call for going lower level.

     

    • Like 1
  2. Hi there!

     

    This might be more of an SVG composition question than an MorphSVGPlugin question, but hoping someone might be able to lend some tips on achieving the right effect for this:

     

    See the Pen qBdZxJO by nolan330 (@nolan330) on CodePen

     

    In the pen, you might notice that the morph "primarily" expands the pentagon into the dodecagon, with the triangle and square sort of collapsing ("merhhhh...") into single points respectively. I'm wondering how I might be able to refine the morph, perhaps using shapeIndex or tweaking the SVG itself, so that the 3 independent shapes more "equally" contribute to the final dodecagon. (I apologize I don't have a more precise vocabulary for this!)

     

    The idea was that 3 + 4 + 5 = 12 (points), and 2 * 2 * 2 = 8 (stroke, who knew stroke grew exponentially!?), so the 3 original closed shapes might sort of compose smoothly into the final dodecagon. I think it could look pretty neat if configured correctly, but it seems like it will depend on a more clever path for the 3 independent shapes.

     

    So far, I've tried kind of a "cheat", where the shapes are just one continuous line, but I think it could still be improved:


    See the Pen LYVNQmp by nolan330 (@nolan330) on CodePen

     

    I also tried changing the shapeIndex on the continuous line, but it doesn't seem to significantly impact the outcome:


    See the Pen oNXxEyb by nolan330 (@nolan330) on CodePen

     

    In any case, any tips or feedback welcome! And I apologize if this is more of a SVG fundamentals question/unfit for the forum.

     

    -nolan

    See the Pen by (@) on CodePen

×
×
  • Create New...