# Trim path with a mask renders as a thin line

**URL:** https://forum.lottiefiles.com/t/trim-path-with-a-mask-renders-as-a-thin-line/6198
**Category:** Lottie Animation Design
**Created:** [September 4, 2024, 9:22pm UTC](https://forum.lottiefiles.com/t/trim-path-with-a-mask-renders-as-a-thin-line/6198 "2024-09-04T21:22:08Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Vincent](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.lottiefiles.com/vincent/32/3958_2.png) [@Vincent](https://forum.lottiefiles.com/u/Vincent)
#### Post date: [September 4, 2024, 9:22pm UTC](https://forum.lottiefiles.com/t/trim-path-with-a-mask-renders-as-a-thin-line/6198/1 "2024-09-04T21:22:08Z")

</div>

Hey folks,

 ![Screenshot 2024-09-04 at 2.15.38 PM](https://canada1.discourse-cdn.com/flex030/uploads/lottiefiles/original/2X/9/91e8398ff1244e7d84d353421af90e6e0cbb4954.png)

I’m having issues rendering shape layers with track mattes in Lottie. I have one shape layer with a path and dashed stroke that works perfectly, it’s masked as it should. However, the other shape layer that should be on top and is a solid _without_ dashes renders as a thin line as shown above. They’re masked the same way. Aside from a time expression on the dashes’ offset, no expressions are used. I’ve masked these two paths separately since it wasn’t working when I had them track matting towards the same layer. The mattes are set above their respective shapes but I still get this weird error. The only keyframe data is trim paths driving the strokes and as you can see the dashed path animates correctly. Any ideas?

---

<div class="post-metadata">

### Author: ![Vincent](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.lottiefiles.com/vincent/32/3958_2.png) [@Vincent](https://forum.lottiefiles.com/u/Vincent)
#### Post date: [September 4, 2024, 9:58pm UTC](https://forum.lottiefiles.com/t/trim-path-with-a-mask-renders-as-a-thin-line/6198/2 "2024-09-04T21:58:54Z")

</div>

![Screenshot 2024-09-04 at 2.59.11 PM](https://canada1.discourse-cdn.com/flex030/uploads/lottiefiles/original/2X/f/f7758129fefad868c0e3f472d665005479c11ab2.png)

After checking the render, the dashes sweep down from outside of the mask. So it doesn’t start from the far left, it trim paths down from the top left corner of the comp which is incorrect.
