# Animating using vtk.js

**URL:** https://discourse.vtk.org/t/animating-using-vtk-js/1604
**Category:** Support
**Created:** [August 18, 2019, 8:33am UTC](https://discourse.vtk.org/t/animating-using-vtk-js/1604 "2019-08-18T08:33:11Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Misha](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/m/c6cbf5/32.png) [@Misha](https://discourse.vtk.org/u/Misha)
#### Post date: [August 18, 2019, 8:33am UTC](https://discourse.vtk.org/t/animating-using-vtk-js/1604/1 "2019-08-18T08:33:11Z")

</div>

Hi,

I have vtk files with data that changes over time.  
Is it possible to animate the data?

---

<div class="post-metadata">

### Author: ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)
#### Post date: [August 18, 2019, 10:29pm UTC](https://discourse.vtk.org/t/animating-using-vtk-js/1604/2 "2019-08-18T22:29:13Z")

</div>

yes if you can load each time step. No if it is a single file as we don’t have a JS version of the exodus reader.

---

<div class="post-metadata">

### Author: ![Misha](https://discourse.vtk.org/letter_avatar_proxy/v4/letter/m/c6cbf5/32.png) [@Misha](https://discourse.vtk.org/u/Misha)
#### Post date: [August 19, 2019, 8:27am UTC](https://discourse.vtk.org/t/animating-using-vtk-js/1604/3 "2019-08-19T08:27:10Z")

</div>

Thank you Sebastien for your response.  
I’m not sure how to do that. I didn’t find the documentation for it. (I have a single file for each time step).

---

<div class="post-metadata">

### Author: ![Sebastien\_Jourdain](https://discourse.vtk.org/user_avatar/discourse.vtk.org/sebastien_jourdain/32/100_2.png) [@Sebastien\_Jourdain](https://discourse.vtk.org/u/Sebastien_Jourdain)
#### Post date: [August 19, 2019, 2:02pm UTC](https://discourse.vtk.org/t/animating-using-vtk-js/1604/4 "2019-08-19T14:02:10Z")

</div>

Assuming you know how to load your data, you need to manage the animation yourself by switching your dataset at the pace you are looking for either via timeout or requestAnimation.  
vtk.js does not provide any infrastructure for animation, but JS does.
