A better way to animate this dynamic web
- April 23, 2023
- 2 replies
- 1170 views
Hello everyone, I'm hoping to figure out a better way to achieve my desired outcome. The idea is to have a set of of lines connected to circular nodes that changes position. Think of molecules, but more of a 2D web. First I moved the nodes individually (in one layer), then I put each line on its own layer. Although now I realize that it's more than just position that I'm animating, now it's also rotation, and I also need to change the length of the lines. I'm not sure how to lengthen the line without scaling (which changes the stroke size), since I need to re-fit the line to the new space between the moved nodes.
After trying the first line, I realize that it's not just the scale that I need a solution for. Since the ends of the lines aren't attached to the nodes, there are breaks or gaps between the ends of the lines and the circular nodes before they reach their final position.
Is there not a way to animate a line getting longer without scaling? Is there no way to pin the end of the line to the circle and move them together without losing the straight lines? Hopefully there's an easier way to approach this particular challenge. Any help is greately appreciated, thank you.
