# How to use the animation that comes with the .gltf file that i downloaded in sketchfab

**URL:** <https://discourse.threejs.org/t/how-to-use-the-animation-that-comes-with-the-gltf-file-that-i-downloaded-in-sketchfab/51529>\
**Category:** Questions\
**Tags:** sketchfab, animation, gltf\
**Created:** [May 13, 2023, 6:44am UTC](https://discourse.threejs.org/t/how-to-use-the-animation-that-comes-with-the-gltf-file-that-i-downloaded-in-sketchfab/51529 "2023-05-13T06:44:56Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![drcmda](https://avatars.discourse-cdn.com/v4/letter/d/91b2a8/32.png) [@drcmda](https://discourse.threejs.org/u/drcmda)\
**Post date:** [May 13, 2023, 10:40am UTC](https://discourse.threejs.org/t/how-to-use-the-animation-that-comes-with-the-gltf-file-that-i-downloaded-in-sketchfab/51529/2 "2023-05-13T10:40:36Z")

</div>

```plaintext
npx gltfjsx scene.gltf --transform

```

it creates a ready made component and a small animation set up using drei/useAnimations. it looks like this: [GLTF Animations - CodeSandbox](https://codesandbox.io/s/pecl6) useAnimation is a small helper around three.mixer, removing all the boilerplate and creating clips automatically.

see [GitHub - pmndrs/gltfjsx: 🎮 Turns GLTFs into JSX components](https://github.com/pmndrs/gltfjsx#%EF%B8%8F-easier-access-to-animations)

ps. if gltfjsx doesn’t create actions for you, then the gltf has none, which might be the reason why your code above didn’t work.

---

_[View the full topic](https://discourse.threejs.org/t/how-to-use-the-animation-that-comes-with-the-gltf-file-that-i-downloaded-in-sketchfab/51529)._
