# How can I animate a LineDashedMaterial

**URL:** https://discourse.threejs.org/t/how-can-i-animate-a-linedashedmaterial/4732
**Category:** Questions
**Tags:** lines
**Created:** [October 30, 2018, 3:46pm UTC](https://discourse.threejs.org/t/how-can-i-animate-a-linedashedmaterial/4732 "2018-10-30T15:46:46Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![prisoner849](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.threejs.org/prisoner849/32/535_2.png) [@prisoner849](https://discourse.threejs.org/u/prisoner849)
#### Post date: [October 30, 2018, 3:59pm UTC](https://discourse.threejs.org/t/how-can-i-animate-a-linedashedmaterial/4732/2 "2018-10-30T15:59:56Z")

</div>

Hi!  
It’s very confusing, mention about svg example and use WebGLRenderer 🙂

Have a look at this reply for ideas:

> [@Movement lines dashed Animation](https://discourse.threejs.org/t/movement-lines-dashed-animation/4101/2):
>
> Hi! You can add a time uniform and use it in the fragment shader of the material: [https://jsfiddle.net/prisoner849/ofcdgtz8/](https://jsfiddle.net/prisoner849/ofcdgtz8/) I’ve added comments to the code.

---

_[View the full topic](https://discourse.threejs.org/t/how-can-i-animate-a-linedashedmaterial/4732)._
