How to Make a Line Animation Follow a Moving Object in PowerPoint
Question details
The user wants to animate a line in a presentation so that one end remains anchored in place while the other end continuously tracks an object moving along a custom or elliptical motion path.

- Product
- PowerPoint
- Device & OS
- not provided
- Scenario
- Creating advanced custom animations, such as simulating an orbit or tracking a moving target, where a connector line needs to dynamically update its length and angle during the slideshow.
- Observed behavior
- PowerPoint does not natively allow one endpoint of a line to remain completely fixed while the other endpoint dynamically follows a moving shape on an elliptical motion path.
Ensure you have the Animation Pane open to manage multiple simultaneous animations, and note that native PowerPoint tools move entire shapes rather than dynamically stretching connectors during a slideshow.
Manually Edit Motion Path Points
Since PowerPoint cannot dynamically stretch lines during an animation, you can approximate the effect by applying a synchronized motion path to the line and editing its center points.
This method involves animating both the object and the line simultaneously. By customizing the line's motion path, you can create the optical illusion that one end is anchored while the other follows the object.
Insert your fixed object (e.g., the Sun), the moving object, and a line shape connecting them.
Select the moving object, go to the Animations tab, click 'Add Animation', and choose a Custom Path or Ellipse motion path.
Select the line, apply the exact same motion path, and set it to 'Start With Previous' in the Animation Pane so they move together.
Right-click the dashed motion path of the line and select 'Edit Points'. Manually adjust the trajectory so that the endpoint nearest the fixed object stays as close to the center as possible throughout the animation.

Use a VBA Macro for Dynamic Anchoring
For absolute precision where the line must stretch and rotate dynamically, a custom VBA script is required to continuously update the line coordinates during the slideshow.
Try WPS Presentation for Seamless Animation Editing
Complex custom animations and motion path adjustments can be frustrating due to native limitations in Microsoft PowerPoint. WPS Office provides a lightweight, free alternative with intuitive animation controls, robust shape formatting, and full compatibility with Microsoft Office formats, making presentation design much smoother.
- 1. Download and Install WPS Office: Visit the official WPS website to download the free office suite and install it on your device.
- 2. Open your Presentation: Launch WPS Presentation and open your existing .pptx file. Your original layout and objects will remain perfectly intact.
- 3. Customize Motion Paths: Navigate to the Animation tab to easily add, manage, and edit motion paths visually using the intuitive Animation Pane.

Frequently Asked Questions
Why doesn't my line stretch automatically when connected to a moving shape?
While connector lines in PowerPoint will stretch when you drag shapes around during the editing phase, the animation engine treats the line as a static graphic object. It moves the entire bounding box of the line rather than recalculating the connection points during the slideshow.
Can I use a Spin animation to keep one end of the line fixed?
Using a Spin animation with a custom anchor point works for circular paths. However, if the moving object follows an elliptical (oval) path, the distance from the center constantly changes. A spin animation cannot dynamically stretch the length of the line, meaning it will eventually detach from the moving object.
How do I access 'Edit Points' for an animation path?
Click on the actual dashed line that represents the motion path on your slide (not the shape itself). Right-click the dashed line and select 'Edit Points' from the context menu. You can now drag the individual nodes to fine-tune the exact trajectory.




