# Stroke line cap glitch on animated path

**URL:** <https://forum.lottiefiles.com/t/stroke-line-cap-glitch-on-animated-path/4589>\
**Category:** Lottie Animation Design\
**Created:** [July 21, 2023, 12:12pm UTC](https://forum.lottiefiles.com/t/stroke-line-cap-glitch-on-animated-path/4589 "2023-07-21T12:12:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lieselot](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.lottiefiles.com/lieselot/32/2900_2.png) [@Lieselot](https://forum.lottiefiles.com/u/Lieselot)\
**Post date:** [July 21, 2023, 12:12pm UTC](https://forum.lottiefiles.com/t/stroke-line-cap-glitch-on-animated-path/4589/1 "2023-07-21T12:12:41Z")

</div>

Hi,

I’m working on an animation in After Effects, exporting to Lottie with Bodymovin.

I have an animated path (a line that makes a wave movement).  
On that path I want to animate a stroke with trim paths.

That works fine, but the stroke cap glitches. If i remove the path animation, the cap doesn’t glitch anymore.

This is with the animated path (glitch): [https://app.lottiefiles.com/animation/c6c4c22f-e08f-432e-80b6-64eb943f6938](https://app.lottiefiles.com/animation/c6c4c22f-e08f-432e-80b6-64eb943f6938)

This is on a still path (no glitch): [https://app.lottiefiles.com/animation/fbf260e2-44c5-410c-94b9-07df1a295508](https://app.lottiefiles.com/animation/fbf260e2-44c5-410c-94b9-07df1a295508)

Is this a bug or something I can fix by tweaking some settings…? Thanks

_(I had some issues previously with the rounded stroke caps so I (already) added an empty rectangle in the same shape layer.)_

Edit: for some reason I can’t publish my animations to public right now… so links are not working.

---

<div class="post-metadata">

**Author:** ![irbypace](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.lottiefiles.com/irbypace/32/3165_2.png) [@irbypace](https://forum.lottiefiles.com/u/irbypace)\
**Post date:** [July 24, 2023, 3:55pm UTC](https://forum.lottiefiles.com/t/stroke-line-cap-glitch-on-animated-path/4589/2 "2023-07-24T15:55:19Z")

</div>

Since the links aren’t working, is there a way you can do a screen recording and share the video for me to be able to check?

---

<div class="post-metadata">

**Author:** ![Jeremy2](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.lottiefiles.com/jeremy2/32/4252_2.png) [@Jeremy2](https://forum.lottiefiles.com/u/Jeremy2)\
**Post date:** [January 9, 2025, 2:41am UTC](https://forum.lottiefiles.com/t/stroke-line-cap-glitch-on-animated-path/4589/3 "2025-01-09T02:41:16Z")

</div>

I think I’m having the same issue, this is what the lottie looks like on export

> **[Free Boat with trim path line issue Animation by Jeremy Dawson | LottieFiles](https://lottiefiles.com/free-animation/boat-with-trim-path-line-issue-2NbdHvryaP)**
>
> Use free Boat with trim path line issue animation on your websites, portfolio, blogs, social media, presentations, videos, etc. Download in Lottie JSON, GIF, and MP4.
